##// END OF EJS Templates
win32: Wine doesn't know about hardlinks
Matt Mackall -
r13976:9ca1ff3d default
parent child Browse files
Show More
@@ -141,8 +141,11 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 try:
144 if not _kernel32.CreateHardLinkA(dst, src, None):
145 if not _kernel32.CreateHardLinkA(dst, src, None):
145 _raiseoserror(src)
146 _raiseoserror(src)
147 except AttributeError: # Wine doesn't support this function
148 _raiseoserror(src)
146
149
147 def nlinks(name):
150 def nlinks(name):
148 '''return number of hardlinks for the given file'''
151 '''return number of hardlinks for the given file'''
General Comments 0
You need to be logged in to leave comments. Login now