Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix: Copy files for local storages on export
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Jan 30, 2023
1 parent 5f9de65 commit b6c17ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions label_studio_converter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def download(url, output_dir, filename=None, project_dir=None, return_relative_p
filepath = os.path.join(LOCAL_FILES_DOCUMENT_ROOT, dir_path)
if not os.path.exists(filepath):
raise FileNotFoundError(filepath)
if download_resources:
shutil.copy(filepath, output_dir)
return filepath

if filename is None:
Expand Down

0 comments on commit b6c17ff

Please sign in to comment.