From bba087f54fb96f284406ac69751dd7bac9cd6388 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Mon, 13 Jan 2025 19:36:39 -0800 Subject: [PATCH] Fix typo Signed-off-by: Victor Chang --- src/holoscan_cli/common/argparse_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/holoscan_cli/common/argparse_types.py b/src/holoscan_cli/common/argparse_types.py index af4eed3..5de293c 100644 --- a/src/holoscan_cli/common/argparse_types.py +++ b/src/holoscan_cli/common/argparse_types.py @@ -85,7 +85,7 @@ def valid_existing_path(path: str) -> Path: file_path = Path(path).absolute() if file_path.exists(): if os.path.isdir(file_path): - if os.listdir(path): + if os.listdir(file_path): return file_path raise argparse.ArgumentTypeError(f"No such file/folder: '{file_path}'") return file_path