Skip to content

Conversation

@julianscheel
Copy link

name ended up as a unknown option due to not being part of the if/elif block.

Signed-off-by: Julian Scheel julian@jusst.de

name ended up as a unknown option due to not being part of the if/elif block.

Signed-off-by: Julian Scheel <julian@jusst.de>
Using shutil.copy is not atomic. The only guaranteed atomic operation is
os.rename, which requires source and target to be on the same filesystem.
Ensure this by resolving the real file path in case it is symlink and place
the tmp file in the same directory.

Signed-off-by: Julian Scheel <julian@jusst.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant