From 3cee1ffba477268cf7182910d69a419614273868 Mon Sep 17 00:00:00 2001 From: Karl Voit Date: Fri, 10 Nov 2023 18:45:08 +0100 Subject: [PATCH] fix missing --overwrite for tagtrees --- filetags/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filetags/__init__.py b/filetags/__init__.py index fc8d391..d7f883d 100755 --- a/filetags/__init__.py +++ b/filetags/__init__.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -PROG_VERSION = "Time-stamp: <2023-10-31 11:20:37 vk>" +PROG_VERSION = "Time-stamp: <2023-11-10 18:44:48 vk>" # TODO: # - fix parts marked with «FIXXME» @@ -2034,7 +2034,7 @@ def assert_empty_tagfilter_directory(directory): @param directory: the directory to use as starting directory """ - if options.tagtrees_directory and os.path.isdir(directory) and os.listdir(directory): + if options.tagtrees_directory and os.path.isdir(directory) and os.listdir(directory) and not options.overwrite: error_exit(13, 'The given tagtrees directory ' + directory + ' is not empty. Aborting here instead ' + 'of removing its content without asking. Please free it up yourself and try again.')