From 169cf596b0f98edcddcc7a9fda791721d3c37f45 Mon Sep 17 00:00:00 2001 From: SpirosChadoulos Date: Fri, 12 May 2017 15:08:06 +0300 Subject: [PATCH] Fixed bool variable error --- beets/ui/commands.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index b7792d0cf..64f3229d5 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1447,13 +1447,6 @@ modify_cmd.parser.add_option( modify_cmd.func = modify_func default_commands.append(modify_cmd) -#export(file) function copies a file without modifying the database. - -def export(file): - # Create necessary ancestry for the copy. - util.mkdirall(file.destination(basedir=dest)) - util.copy(file.path, file.destination(basedir=dest)) - # move: Move/copy files to the library or a new base directory. def move_items(lib, dest, query, copy, album, pretend, export=False, @@ -1488,6 +1481,12 @@ def move_items(lib, dest, query, copy, album, pretend, export=False, else: #Copying files without modifying the database. if export: + # export(file) function copies a file without modifying the database. + + def export(file): + # Create necessary ancestry for the copy. + util.mkdirall(file.destination(basedir=dest)) + util.copy(file.path, file.destination(basedir=dest)) if album: for obj in objs: for item in obj.items():