It uses a temporary file in the same directory as the given path. This
ensures that the temporary file resides on the same filesystem.
The temporary file will then be atomically moved to the target
location: On POSIX, it will use rename if files should be overwritten,
otherwise a combination of link and unlink. On Windows, it uses
MoveFileEx through stdlib's ctypes with the appropriate flags.
Note that with link and unlink, there's a timewindow where the file
might be available under two entries in the filesystem: The name of
the temporary file, and the name of the target file.
Also note that the permissions of the target file may change this
way. In some situations a chmod can be issued without any concurrency
problems, but since that is not always the case, this library
doesn't do it by itself.
This is the Python 2 build of atomicwrites.
Maintained by: Isaac Yu
Keywords: python,library,atomic,writes
ChangeLog: python2-atomicwrites
Homepage:
https://github.com/untitaker/python-atomicwrites
Download SlackBuild:
python2-atomicwrites.tar.gz
python2-atomicwrites.tar.gz.asc (FAQ)
(the SlackBuild does not include the source)
Individual Files: |
README |
python2-atomicwrites.SlackBuild |
python2-atomicwrites.info |
slack-desc |
© 2006-2023 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of
Patrick Volkerding
Linux® is a registered trademark of
Linus Torvalds