From 38ed787685d0a135a8ff8894a4fd2987c8dcbed5 Mon Sep 17 00:00:00 2001 From: Vismayak Mohanarajan Date: Thu, 9 Jan 2025 14:00:50 -0600 Subject: [PATCH] Revert "first attempt at accesing miniofs" This reverts commit d8e5e268c4bae52e3946a6f1ad0d9bd9e4f257b7. --- pyclowder/files.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pyclowder/files.py b/pyclowder/files.py index b78068c..cfe3b27 100644 --- a/pyclowder/files.py +++ b/pyclowder/files.py @@ -38,7 +38,7 @@ def get_download_url(connector, host, key, fileid, intermediatefileid=None, ext= # pylint: disable=too-many-arguments -def download(connector, host, key, fileid, intermediatefileid=None, ext="", tracking=True, mounted_filesystem = False, mounted_dir = "None"): +def download(connector, host, key, fileid, intermediatefileid=None, ext="", tracking=True): """Download file to be processed from Clowder. Keyword arguments: @@ -49,14 +49,7 @@ def download(connector, host, key, fileid, intermediatefileid=None, ext="", trac intermediatefileid -- either same as fileid, or the intermediate file to be used ext -- the file extension, the downloaded file will end with this extension tracking -- should the download action be tracked - mounted_filesystem -- if the minio storage is mounted to the local filesystem """ - - if mounted_filesystem: - if mounted_dir == "None": - mounted_dir = "/clowderfs" - inputfilename = "/clowderfs/" + fileid - return inputfilename client = ClowderClient(host=host, key=key) inputfilename = files.download(connector, client, fileid, intermediatefileid, ext) return inputfilename