Skip to content

Commit c8f41ee

Browse files
committed
roll back
1 parent 32951cc commit c8f41ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/parsers/readers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,13 @@ def _read(
729729
glob = kwds.get("glob", None)
730730
files = iterdir(filepath_or_buffer, extensions, glob)
731731

732-
if not files:
732+
if isinstance(files, list) and not files:
733733
raise FileNotFoundError(
734734
f"No files found in {filepath_or_buffer}, "
735735
f"with extension(s) {extensions} and glob pattern {glob}"
736736
)
737737

738-
if len(files) == 1:
738+
if isinstance(files, list) and len(files) == 1:
739739
file = files[0]
740740
parser = TextFileReader(file, **kwds)
741741

0 commit comments

Comments
 (0)