Show More
@@ -141,7 +141,10 b' def _getfileinfo(name):' | |||||
141 | _kernel32.CloseHandle(fh) |
|
141 | _kernel32.CloseHandle(fh) | |
142 |
|
142 | |||
143 | def os_link(src, dst): |
|
143 | def os_link(src, dst): | |
144 | if not _kernel32.CreateHardLinkA(dst, src, None): |
|
144 | try: | |
|
145 | if not _kernel32.CreateHardLinkA(dst, src, None): | |||
|
146 | _raiseoserror(src) | |||
|
147 | except AttributeError: # Wine doesn't support this function | |||
145 | _raiseoserror(src) |
|
148 | _raiseoserror(src) | |
146 |
|
149 | |||
147 | def nlinks(name): |
|
150 | def nlinks(name): |
General Comments 0
You need to be logged in to leave comments.
Login now