Skip to content

Commit

Permalink
fix(ps): common path bug
Browse files Browse the repository at this point in the history
Signed-off-by: tjzegmott <[email protected]>
  • Loading branch information
tjzegmott committed Jun 13, 2023
1 parent ed3ce02 commit 266cc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtcli/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def ps( # noqa: C901
minoc_files = [f.replace("cadc:CHIMEFRB", "") for f in minoc_files]
# Make sure starts with a /
common_path = os.path.commonpath(
["/" + f for f in minoc_files if not f.startswith("/")]
["/" + f if not f.startswith("/") else f for f in minoc_files]
)
try:
size = cadcclient.size(common_path)
Expand Down

0 comments on commit 266cc3a

Please sign in to comment.