Skip to content

Commit ae3ed35

Browse files
committed
fixup! fixup! fixup! fixup! Normalize Windows style paths to parse folder
1 parent 51f863e commit ae3ed35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roboflow/util/folderparser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def _add_indices(files):
7474

7575
def _describe_file(f):
7676
f = _patch_sep(f)
77-
dirname, name = f.rsplit("/", 1)
77+
name = f.split("/")[-1]
78+
dirname = os.path.dirname(f)
7879
fullkey, extension = os.path.splitext(f)
7980
fullkey2 = fullkey.replace("/labels", "").replace("/images", "")
8081
key = os.path.splitext(name)[0]

0 commit comments

Comments
 (0)