Skip to content

Commit

Permalink
Support URLs on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Aug 13, 2024
1 parent ce88ca2 commit fc88eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchgeo/datasets/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def files(self) -> list[Path]:
files |= set(glob.iglob(pathname, recursive=True))
elif (
os.path.isfile(path)
and fnmatch.fnmatch(path, os.path.join('*', self.filename_glob))
and fnmatch.fnmatch(path, f'*{self.filename_glob}')
or path_is_vsi(path)
):
files.add(path)
Expand Down

0 comments on commit fc88eef

Please sign in to comment.