mirror of
https://github.com/beetbox/beets.git
synced 2026-02-08 00:14:31 +01:00
Failing to link a file now throws a FilesystemError.
This commit is contained in:
parent
3b898163ee
commit
b0a843cfbe
1 changed files with 3 additions and 2 deletions
|
|
@ -460,11 +460,12 @@ def link(path, dest, replace=False):
|
|||
if os.path.exists(dest) and not replace:
|
||||
raise FilesystemError('file exists', 'rename', (path, dest),
|
||||
traceback.format_exc())
|
||||
|
||||
try:
|
||||
os.symlink(path, dest)
|
||||
except OSError:
|
||||
print "WAAT!"
|
||||
raise FilesystemError('Operating system does not support symbolic '
|
||||
'links.', 'link', (path, dest),
|
||||
traceback.format_exc())
|
||||
|
||||
|
||||
def unique_path(path):
|
||||
|
|
|
|||
Loading…
Reference in a new issue