We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c3f1e7 commit a70e10dCopy full SHA for a70e10d
img2dataset/reader.py
@@ -57,7 +57,7 @@ def __init__(
57
self.tmp_path = tmp_path
58
59
if fs.isdir(url_path):
60
- self.input_files = sorted(fs.glob(url_path + "/*." + input_format))
+ self.input_files = sorted(fs.glob(url_path.rstrip("/") + "/*." + input_format))
61
if len(self.input_files) == 0:
62
raise ValueError(f"No file found at path {url_path} with extension {input_format}")
63
else:
0 commit comments