🏃 fix: run path

This commit is contained in:
Florian Hönicke
2023-05-11 10:30:13 +02:00
parent 0a50d35de6
commit 21b7efe4ae

View File

@@ -35,9 +35,6 @@ def path_param(func):
def wrapper(*args, **kwargs):
path = os.path.expanduser(kwargs['path'])
path = os.path.abspath(path)
if os.path.exists(path) and os.listdir(path):
click.echo(f"Error: The path {path} you provided via --path is not empty. Please choose a directory that does not exist or is empty.")
exit(1)
kwargs['path'] = path
return func(*args, **kwargs)
return wrapper