Skip to content

Commit

Permalink
feat(core.io): support globs without * (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikvl authored Dec 19, 2023
1 parent a66283b commit bcd1fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draco/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _list_or_glob(files: Union[str, List[str]]) -> List[str]:
return parsed_files

# If it's a glob we need to expand the glob and then call again
if isinstance(files, str) and "*" in files:
if isinstance(files, str) and any(c in files for c in "*?["):
return _list_or_glob(sorted(glob.glob(files)))

# We presume a string is an actual path...
Expand Down

0 comments on commit bcd1fac

Please sign in to comment.