@@ -5262,7 +5262,7 @@ async def exists(self, path: _SFTPPath) -> bool:
5262
5262
5263
5263
"""
5264
5264
5265
- return ( await self ._type (path ) ) != FILEXFER_TYPE_UNKNOWN
5265
+ return await self ._type (path ) != FILEXFER_TYPE_UNKNOWN
5266
5266
5267
5267
async def lexists (self , path : _SFTPPath ) -> bool :
5268
5268
"""Return if the remote path exists, without following symbolic links
@@ -5275,7 +5275,7 @@ async def lexists(self, path: _SFTPPath) -> bool:
5275
5275
5276
5276
"""
5277
5277
5278
- return ( await self ._type (path , statfunc = self .lstat ) ) != \
5278
+ return await self ._type (path , statfunc = self .lstat ) != \
5279
5279
FILEXFER_TYPE_UNKNOWN
5280
5280
5281
5281
async def getatime (self , path : _SFTPPath ) -> Optional [float ]:
@@ -5404,7 +5404,7 @@ async def isdir(self, path: _SFTPPath) -> bool:
5404
5404
5405
5405
"""
5406
5406
5407
- return ( await self ._type (path ) ) == FILEXFER_TYPE_DIRECTORY
5407
+ return await self ._type (path ) == FILEXFER_TYPE_DIRECTORY
5408
5408
5409
5409
async def isfile (self , path : _SFTPPath ) -> bool :
5410
5410
"""Return if the remote path refers to a regular file
@@ -5417,7 +5417,7 @@ async def isfile(self, path: _SFTPPath) -> bool:
5417
5417
5418
5418
"""
5419
5419
5420
- return ( await self ._type (path ) ) == FILEXFER_TYPE_REGULAR
5420
+ return await self ._type (path ) == FILEXFER_TYPE_REGULAR
5421
5421
5422
5422
async def islink (self , path : _SFTPPath ) -> bool :
5423
5423
"""Return if the remote path refers to a symbolic link
@@ -5430,7 +5430,7 @@ async def islink(self, path: _SFTPPath) -> bool:
5430
5430
5431
5431
"""
5432
5432
5433
- return ( await self ._type (path , statfunc = self .lstat ) ) == \
5433
+ return await self ._type (path , statfunc = self .lstat ) == \
5434
5434
FILEXFER_TYPE_SYMLINK
5435
5435
5436
5436
async def remove (self , path : _SFTPPath ) -> None :
@@ -8171,12 +8171,12 @@ async def _type(self, path: bytes) -> int:
8171
8171
async def exists (self , path : bytes ) -> bool :
8172
8172
"""Return if a path exists"""
8173
8173
8174
- return ( await self ._type (path ) ) != FILEXFER_TYPE_UNKNOWN
8174
+ return await self ._type (path ) != FILEXFER_TYPE_UNKNOWN
8175
8175
8176
8176
async def isdir (self , path : bytes ) -> bool :
8177
8177
"""Return if the path refers to a directory"""
8178
8178
8179
- return ( await self ._type (path ) ) == FILEXFER_TYPE_DIRECTORY
8179
+ return await self ._type (path ) == FILEXFER_TYPE_DIRECTORY
8180
8180
8181
8181
def scandir (self , path : bytes ) -> AsyncIterator [SFTPName ]:
8182
8182
"""Return names and attributes of the files in a directory"""
0 commit comments