mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/atomicwrites: Wrap README at 72 columns.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
7a3d41a5a6
commit
29a99703fd
1 changed files with 13 additions and 12 deletions
|
@ -1,15 +1,16 @@
|
|||
It uses a temporary file in the same directory as the given path. This ensures
|
||||
that the temporary file resides on the same filesystem.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue