Skip to content

Commit

Permalink
fix #1366 ln -sf leaving tmp files lying around
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Jan 9, 2025
1 parent 34031df commit 2d41230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ def renameOneItem(self, old, path) -> bool:
for messages with an rename file operation, it is to rename a file.
"""
ok = True
if not os.path.exists(old):
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"
% (old, path))
Expand Down

0 comments on commit 2d41230

Please sign in to comment.