mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
commit
be7bd8d8ce
1 changed files with 4 additions and 2 deletions
|
|
@ -643,9 +643,11 @@ def import_files(lib, paths, query):
|
|||
for path in paths:
|
||||
fullpath = syspath(normpath(path))
|
||||
if not config['import']['singletons'] and not os.path.isdir(fullpath):
|
||||
raise ui.UserError('not a directory: ' + path)
|
||||
raise ui.UserError(u'not a directory: {0}'.format(
|
||||
displayable_path(path)))
|
||||
elif config['import']['singletons'] and not os.path.exists(fullpath):
|
||||
raise ui.UserError('no such file: ' + path)
|
||||
raise ui.UserError(u'no such file: {0}'.format(
|
||||
displayable_path(path)))
|
||||
|
||||
# Check parameter consistency.
|
||||
if config['import']['quiet'] and config['import']['timid']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue