Skip to content

Commit

Permalink
explaining the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Jan 9, 2025
1 parent 2d41230 commit a0e9c19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ def renameOneItem(self, old, path) -> bool:
for messages with an rename file operation, it is to rename a file.
"""
ok = True
# it turns out that links that exist but point to non-existent files return exists: False.
if not os.path.islink(old) and not os.path.exists(old):
logger.info(
"old file %s not found, if destination (%s) missing, then fall back to copy"
Expand Down

0 comments on commit a0e9c19

Please sign in to comment.