Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
stxue1 committed Oct 24, 2024
1 parent d16dc24 commit 642efd0
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/toil/wdl/wdltoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,36 +1125,6 @@ def get_filename_size(filename: str) -> FileMetadata:
return {k: get_filename_size(k) for k in filenames}


def import_files(files: List[str], file_source: AbstractJobStore) -> Dict[str, FileID]:
"""
Import all files from the list into the jobstore. Returns a dictionary mapping the filename to it's FileID
:param files: list of filenames
:param file_source: jobstore object
:return:
"""

@memoize
def import_filename(filename: str) -> Optional[FileID]:
"""
Detect if any potential URI exists. Will convert a file's value to a URI and import it.
Separated out from convert_file_to_url in order to properly memoize and avoid importing the same file twice
:param filename: Filename to import
:return: Tuple of the uri the file was found at and the virtualized import
"""
# Search through any input search paths passed in and download it if found
# Actually import
# Try to import the file. If we can't find it, continue
return file_source.import_file(filename)

path_to_fileid = {}
for file in files:
imported = import_filename(file)
if imported is not None:
path_to_fileid[file] = imported
return path_to_fileid


def convert_files(
environment: WDLBindings,
file_to_id: Dict[str, FileID],
Expand Down

0 comments on commit 642efd0

Please sign in to comment.