Skip to content

Commit

Permalink
fix(toolkit): file download for non absolute paths (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
badayvedat authored Apr 15, 2024
1 parent ddf3bd7 commit 47be563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/fal/src/fal/toolkit/utils/download_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def download_file(

# If target_dir is not an absolute path, use "/data" as the relative directory
if not target_dir_path.is_absolute():
target_dir_path = FAL_PERSISTENT_DIR / target_dir_path # type: ignore[assignment]
target_dir_path = Path(FAL_PERSISTENT_DIR / target_dir_path) # type: ignore[assignment]

target_path = target_dir_path.resolve() / file_name

Expand Down

0 comments on commit 47be563

Please sign in to comment.