aios
⚓︎
aios = asyncio + os
Classes:
-
DirEntryAsync–DirEntryAsync os.DirEntry + async
Functions:
-
scandir–Async version of os.scandir
DirEntryAsync
⚓︎
DirEntryAsync os.DirEntry + async
Signature of os.DirEntry:
@final
class DirEntry(Generic[AnyStr]):
# This is what the scandir iterator yields
# The constructor is hidden
@property
def name(self) -> AnyStr: ...
@property
def path(self) -> AnyStr: ...
def inode(self) -> int: ...
def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
def is_symlink(self) -> bool: ...
def stat(self, *, follow_symlinks: bool = True) -> stat_result: ...
def __fspath__(self) -> AnyStr: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
scandir
async
⚓︎
scandir(
path: AnyStr,
) -> AsyncIterator[DirEntryAsync[AnyStr]]
Async version of os.scandir
Signature of os.scandir:
def scandir(path: AnyStr) -> Iterator[DirEntry[AnyStr]]: ...