Skip to content

Commit

Permalink
Fixed bug when Cache.move_in in cases where uri is None
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 12, 2024
1 parent 72d170d commit 5394bed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cache_manager/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,10 @@ def move_in(
args.pop('self')
args.pop('path')

uri = uri or os.path.basename(path)
args['uri'] = uri or os.path.basename(path)

item = self.create(**args)

_log(f'Copying `{path}` to `{item.path}`.')
shutil.copy(path, item.path)

Expand Down

0 comments on commit 5394bed

Please sign in to comment.