mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
import: allow relative paths on Windows
This commit is contained in:
parent
70000ec4e4
commit
b20367dd41
2 changed files with 4 additions and 2 deletions
|
|
@ -644,9 +644,10 @@ def import_files(lib, paths, copy, move, write, autot, logpath, threaded,
|
|||
"""
|
||||
# Check the user-specified directories.
|
||||
for path in paths:
|
||||
if not singletons and not os.path.isdir(syspath(path)):
|
||||
fullpath = syspath(normpath(path))
|
||||
if not singletons and not os.path.isdir(fullpath):
|
||||
raise ui.UserError('not a directory: ' + path)
|
||||
elif singletons and not os.path.exists(syspath(path)):
|
||||
elif singletons and not os.path.exists(fullpath):
|
||||
raise ui.UserError('no such file: ' + path)
|
||||
|
||||
# Check parameter consistency.
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ art for your music, enable this plugin after upgrading to beets 1.0b15.
|
|||
represented in the database on Windows; if you find that beets' paths are out
|
||||
of sync with your filesystem with this release, delete and recreate your
|
||||
database with ``beet import -AWC /path/to/music``.
|
||||
* Fix ``import`` with relative path arguments on Windows.
|
||||
|
||||
.. _artist credits: http://wiki.musicbrainz.org/Artist_Credit
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue