Changed library check from existence to directory

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

View file

@ -1186,7 +1186,7 @@ def update_items(lib, query, album, move, pretend, fields):
def update_func(lib, opts, args):
# Verify that the library folder exists to prevent accidental wipes.
if not os.path.exists(lib.directory):
if not os.path.isdir(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):