mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Remove windows hardlink checks
This commit is contained in:
parent
b4efecb709
commit
076c753943
1 changed files with 0 additions and 5 deletions
|
|
@ -514,14 +514,9 @@ def hardlink(path, dest, replace=False):
|
|||
try:
|
||||
os.link(path, dest)
|
||||
except NotImplementedError:
|
||||
# raised on python >= 3.2 and Windows versions before Vista
|
||||
raise FilesystemError(u'OS does not support hard links.'
|
||||
'link', (path, dest), traceback.format_exc())
|
||||
except OSError as exc:
|
||||
# TODO: Windows version checks can be removed for python 3
|
||||
if hasattr('sys', 'getwindowsversion'):
|
||||
if sys.getwindowsversion()[0] < 6: # is before Vista
|
||||
exc = u'OS does not support hard links.'
|
||||
raise FilesystemError(exc, 'link', (path, dest),
|
||||
traceback.format_exc())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue