We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506730a commit d0ec269Copy full SHA for d0ec269
bin/jsonpatch
@@ -47,7 +47,8 @@ def patch_files():
47
# Attempt to replace the file atomically. We do this by
48
# creating a temporary file in the same directory as the
49
# original file so we can atomically move the new file over
50
- # the original later.
+ # the original later. (This is done in the same directory
51
+ # because atomic renames do not work across mount points.)
52
53
fd, pathname = tempfile.mkstemp(dir=dirname)
54
fp = os.fdopen(fd, 'w')
0 commit comments