Library path is printed if update cannot find it

This commit is contained in:
Logan Arens 2019-10-12 12:25:18 -04:00 committed by GitHub
parent 72fcceac99
commit baf4953ac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1188,6 +1188,7 @@ def update_func(lib, opts, args):
# Verify that the library folder exists to prevent accidental wipes.
if not os.path.exists(lib.directory):
ui.print_("Library path is unavailable or does not exist.")
ui.print_(lib.directory)
if not ui.input_yn("Are you sure you want to continue (y/n)?", True):
return
update_items(lib, decargs(args), opts.album, ui.should_move(opts.move),