Skip to content

Commit

Permalink
Revert "first attempt at accesing miniofs"
Browse files Browse the repository at this point in the history
This reverts commit d8e5e26.
  • Loading branch information
Vismayak committed Jan 9, 2025
1 parent d8e5e26 commit 38ed787
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pyclowder/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 38ed787

Please sign in to comment.