erg/crates/erg_compiler/lib/pystd/os.d/__init__.d.er
2023-01-24 19:57:43 +09:00

25 lines
778 B
Python

.path = pyimport "path"
# .PathLike: ClassType
'''
The name of the operating system dependent module imported. The following names have currently been registered:
'posix', 'nt', 'java'.
'''
.name: Str
.chdir!: (path: PathLike, ) => NoneType
.getcwd!: () => Str
.getenv!: (key: Str, default: Str or NoneType := NoneType) => Str
.listdir!: (path := PathLike,) => [Str; _]
.mkdir!: (path: PathLike, mode := Nat) => NoneType
.putenv!: (key: Str, value: Str) => NoneType
.remove!: (path: PathLike,) => NoneType
.removedirs!: (path: PathLike,) => NoneType
.rename!: (src: PathLike, dst: PathLike) => NoneType
.rmdir!: (path: PathLike,) => NoneType
# posix = pyimport "posix"
# .uname!: () => posix.UnameResult
.getrandom!: (size: Nat) => Bytes
.urandom!: (size: Nat) => Bytes