@@ -63,7 +63,7 @@ def _make_entry(filesystem, info):
63
63
64
64
class BaseFSSpecPath (URIPath ):
65
65
protocol : str
66
- filesystem : ' fsspec.AbstractFileSystem'
66
+ filesystem : " fsspec.AbstractFileSystem"
67
67
68
68
def __init__ (self , path : PathLike , * other_paths : PathLike ):
69
69
super ().__init__ (path , * other_paths )
@@ -375,7 +375,7 @@ def sync(
375
375
self .path_without_protocol , dst_path , recursive = True
376
376
)
377
377
378
- def rename (self , dst_path : PathLike , overwrite : bool = True ) -> "BaseFSSpecPath" :
378
+ def rename (self , dst_path : PathLike , overwrite : bool = True ):
379
379
"""
380
380
rename file with fsspec
381
381
@@ -384,7 +384,7 @@ def rename(self, dst_path: PathLike, overwrite: bool = True) -> "BaseFSSpecPath"
384
384
"""
385
385
self .filesystem .mv (self .path_without_protocol , dst_path , recursive = False )
386
386
387
- def move (self , dst_path : PathLike , overwrite : bool = True ) -> "BaseFSSpecPath" :
387
+ def move (self , dst_path : PathLike , overwrite : bool = True ):
388
388
"""
389
389
move file/directory with fsspec
390
390
@@ -393,7 +393,7 @@ def move(self, dst_path: PathLike, overwrite: bool = True) -> "BaseFSSpecPath":
393
393
"""
394
394
self .filesystem .mv (self .path_without_protocol , dst_path , recursive = True )
395
395
396
- def unlink (self , missing_ok : bool = False ) -> None :
396
+ def unlink (self , missing_ok : bool = False ):
397
397
"""
398
398
Remove the file with fsspec
399
399
@@ -403,7 +403,7 @@ def unlink(self, missing_ok: bool = False) -> None:
403
403
return
404
404
self .filesystem .rm (self .path_without_protocol , recursive = False )
405
405
406
- def remove (self , missing_ok : bool = False ) -> None :
406
+ def remove (self , missing_ok : bool = False ):
407
407
"""
408
408
Remove the file or directory with fsspec
409
409
@@ -456,7 +456,7 @@ def create_generator():
456
456
FileNotFoundError ("No match any file in: %r" % self .path_with_protocol ),
457
457
)
458
458
459
- def scandir (self ) -> Iterator [FileEntry ]:
459
+ def scandir (self , followlinks : bool = False ) -> Iterator [FileEntry ]:
460
460
"""
461
461
Get all content of given file path.
462
462
0 commit comments