File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ def iterdir(
1335
1335
path : FilePath | BaseBuffer ,
1336
1336
extensions : str | Iterable [str ] | None = None ,
1337
1337
glob : str | None = None ,
1338
- ) -> list [Path | PurePosixPath ] | BaseBuffer :
1338
+ ) -> list [str | Path ] | BaseBuffer :
1339
1339
"""Yield file paths in a directory (no nesting allowed).
1340
1340
1341
1341
Supports:
@@ -1414,7 +1414,7 @@ def iterdir(
1414
1414
extensions ,
1415
1415
glob ,
1416
1416
):
1417
- return [PurePosixPath ( path_without_scheme ) ]
1417
+ return [path ]
1418
1418
1419
1419
result = []
1420
1420
for file in fs .ls (path_without_scheme , detail = True ):
@@ -1425,5 +1425,5 @@ def iterdir(
1425
1425
extensions ,
1426
1426
glob ,
1427
1427
):
1428
- result .append (path_obj )
1428
+ result .append (f" { scheme } :// { path_obj } " )
1429
1429
return result
You can’t perform that action at this time.
0 commit comments