mirror of
https://github.com/beetbox/beets.git
synced 2026-02-22 23:33:50 +01:00
Two more syspath calls
This commit is contained in:
parent
bb13f37e59
commit
686838856a
1 changed files with 2 additions and 2 deletions
|
|
@ -479,9 +479,9 @@ def move(path, dest, replace=False):
|
|||
instead, in which case metadata will *not* be preserved. Paths are
|
||||
translated to system paths.
|
||||
"""
|
||||
if os.path.isdir(path):
|
||||
if os.path.isdir(syspath(path)):
|
||||
raise FilesystemError(u'source is directory', 'move', (path, dest))
|
||||
if os.path.isdir(dest):
|
||||
if os.path.isdir(syspath(dest)):
|
||||
raise FilesystemError(u'destination is directory', 'move',
|
||||
(path, dest))
|
||||
if samefile(path, dest):
|
||||
|
|
|
|||
Loading…
Reference in a new issue