Skip to content

Commit 12cbd5b

Browse files
committed
fix: resolve depot resource paths before removing symlinks in S3 migration
1 parent 192ba2a commit 12cbd5b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.0.1
2+
- fix: resolve depot resource paths before removing symlinks in S3 migration
13
1.0.0
24
- declare first stable release
35
- ref: remove deprecated `sha_256`

ckanext/dcor_depot/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def dcor_migrate_resources_to_object_store(modified_days=-1,
182182
else:
183183
# Only ever delete when upload succeeds
184184
if delete_after_migration:
185-
pathlib.Path(local_path).unlink()
186185
path_res = pathlib.Path(local_path).resolve()
186+
pathlib.Path(local_path).unlink()
187187
if path_res.exists():
188188
path_res.unlink()
189189

0 commit comments

Comments
 (0)