Skip to content
Snippets Groups Projects
Commit 035684c6 authored by Adrian Buehlmann's avatar Adrian Buehlmann
Browse files

opener: force copy on 'a'ppend if nlinks() returns 0 (issue1922)

If pywin32 is not installed, 'os.lstat(pathname).st_nlink' is used for
nlinks(), which is always zero for all files on Windows.

To make sure we break up hardlinks if pywin32 is missing, we force
nlink = 2 if nlinks() returns < 1.

(this completely fixes issue1922)
parent d0e0d3d4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment