From 21b7efe4ae7f35f979951c560907be8bc7df7c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Thu, 11 May 2023 10:30:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=83=20fix:=20run=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_gpt/cli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dev_gpt/cli.py b/dev_gpt/cli.py index 4c0b29a..08d2ada 100644 --- a/dev_gpt/cli.py +++ b/dev_gpt/cli.py @@ -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