mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
25 lines
778 B
Python
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
|