slackbuilds/python/atomicwrites
Heinz Wiesinger 7f26b9929f
All: SlackBuilds run in the directory they are in
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-07-05 16:01:32 +07:00
..
README various: Kill lots of python3 dep mentions 2021-04-21 00:42:24 -05:00
atomicwrites.SlackBuild All: SlackBuilds run in the directory they are in 2021-07-05 16:01:32 +07:00
atomicwrites.info python/atomicwrites: Updated for version 1.3.0. 2019-10-12 08:50:55 +07:00
slack-desc python/atomicwrites: Added (Python library for atomic file writes). 2018-07-07 06:54:12 +07:00

README

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
stdlibs ctypes with the appropriate flags.

Note that with link and unlink, theres 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 doesnt do it by itself.