Skip to content

Commit

Permalink
fix test compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzay-G committed May 20, 2021
1 parent 3706220 commit 05d6d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def move_item(dataobj_id, new_path):
if (out_dir / file.parts[-1]).exists():
raise FileExistsError
elif is_relative_to(out_dir, data_dir) and out_dir.exists(): # check file isn't
return shutil.move(file, f"{get_data_dir()}/{new_path}/")
return shutil.move(str(file), f"{get_data_dir()}/{new_path}/")
return False


Expand Down

0 comments on commit 05d6d2a

Please sign in to comment.