Show More
@@ -182,14 +182,16 b' def checklink(path):' | |||
|
182 | 182 | # link creation might race, try again |
|
183 | 183 | if inst[0] == errno.EEXIST: |
|
184 | 184 | continue |
|
185 | # sshfs might report failure while successfully creating the link | |
|
186 | if inst[0] == errno.EIO and os.path.exists(name): | |
|
187 | os.unlink(name) | |
|
188 | return False | |
|
185 | raise | |
|
189 | 186 | finally: |
|
190 | 187 | fd.close() |
|
191 | 188 | except AttributeError: |
|
192 | 189 | return False |
|
190 | except OSError as inst: | |
|
191 | # sshfs might report failure while successfully creating the link | |
|
192 | if inst[0] == errno.EIO and os.path.exists(name): | |
|
193 | os.unlink(name) | |
|
194 | return False | |
|
193 | 195 | |
|
194 | 196 | def checkosfilename(path): |
|
195 | 197 | '''Check that the base-relative path is a valid filename on this platform. |
General Comments 0
You need to be logged in to leave comments.
Login now