Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Chang <[email protected]>
  • Loading branch information
mocsharp committed Jan 14, 2025
1 parent 2406687 commit bba087f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/holoscan_cli/common/argparse_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bba087f

Please sign in to comment.