Skip to content

Commit d0e7273

Browse files
committed
Should be path
1 parent 7529c54 commit d0e7273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/murfey/client/destinations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def find_longest_data_directory(
2020
Determine the longest path in the data_directories list
2121
which the match path is relative to
2222
"""
23-
base_dir = ""
23+
base_dir = Path("")
2424
mid_dir = Path("")
2525
for dd in data_directories:
2626
dd_base = str(Path(dd).absolute())
27-
if str(match_path).startswith(str(dd)) and len(dd_base) > len(base_dir):
28-
base_dir = dd_base
27+
if str(match_path).startswith(str(dd)) and len(dd_base) > len(str(base_dir)):
28+
base_dir = Path(dd_base)
2929
mid_dir = match_path.absolute().relative_to(Path(base_dir)).parent
3030
return base_dir, mid_dir
3131

0 commit comments

Comments
 (0)