Skip to content

Commit b7e055c

Browse files
committed
fix remote path
1 parent 103db50 commit b7e055c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ def iterdir(
13351335
path: FilePath | BaseBuffer,
13361336
extensions: str | Iterable[str] | None = None,
13371337
glob: str | None = None,
1338-
) -> list[Path | PurePosixPath] | BaseBuffer:
1338+
) -> list[str | Path] | BaseBuffer:
13391339
"""Yield file paths in a directory (no nesting allowed).
13401340
13411341
Supports:
@@ -1414,7 +1414,7 @@ def iterdir(
14141414
extensions,
14151415
glob,
14161416
):
1417-
return [PurePosixPath(path_without_scheme)]
1417+
return [path]
14181418

14191419
result = []
14201420
for file in fs.ls(path_without_scheme, detail=True):
@@ -1425,5 +1425,5 @@ def iterdir(
14251425
extensions,
14261426
glob,
14271427
):
1428-
result.append(path_obj)
1428+
result.append(f"{scheme}://{path_obj}")
14291429
return result

0 commit comments

Comments
 (0)