mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-13 16:15:15 +00:00
69 lines
2.7 KiB
Python
69 lines
2.7 KiB
Python
.PurePath: ClassType
|
|
.PurePath <: PathLike
|
|
.PurePath <: Eq
|
|
.PurePath <: Hash
|
|
.PurePath.
|
|
parts: [Str; _]
|
|
drive: Str
|
|
root: Str
|
|
anchor: Str
|
|
parents: [.PurePath; _]
|
|
parent: .PurePath
|
|
name: Str
|
|
suffix: Str
|
|
suffixes: [Str; _]
|
|
stem: Str
|
|
__call__: (*segments: Str) -> .PurePath
|
|
absolute: (self: .PurePath) -> .PurePath
|
|
as_posix: (self: .PurePath) -> Str
|
|
as_uri: (self: .PurePath) -> Str
|
|
is_absolute: (self: .PurePath) -> Bool
|
|
is_block_device: (self: .PurePath) -> Bool
|
|
is_dir: (self: .PurePath) -> Bool
|
|
is_file: (self: .PurePath) -> Bool
|
|
is_fifo: (self: .PurePath) -> Bool
|
|
is_mount: (self: .PurePath) -> Bool
|
|
is_relative_to: (self: .PurePath, *other: .PurePath) -> Bool
|
|
is_reserved: (self: .PurePath) -> Bool
|
|
is_socket: (self: .PurePath) -> Bool
|
|
is_symlink: (self: .PurePath) -> Bool
|
|
joinpath: (self: .PurePath, *other: .PurePath) -> .PurePath
|
|
match: (self: .PurePath, pattern: Str) -> Bool
|
|
relative_to: (self: .PurePath, *other: .PurePath) -> .PurePath
|
|
with_name: (self: .PurePath, name: Str) -> .PurePath
|
|
with_stem: (self: .PurePath, suffix: Str) -> .PurePath
|
|
with_suffix: (self: .PurePath, suffix: Str) -> .PurePath
|
|
.PurePosixPath: ClassType
|
|
.PureWindowsPath: ClassType
|
|
.Path: ClassType
|
|
.Path <: .PurePath
|
|
.Path.
|
|
__call__: (*segments: Str) -> .Path
|
|
absolute: (self: .Path) -> .Path
|
|
as_uri: (self: .Path) -> Str
|
|
cwd!: () => .Path
|
|
chmod!: (self: .Path, mode: Nat) => NoneType
|
|
exists!: (self: .Path) => Bool
|
|
expanduser!: (self: .Path) => .Path
|
|
glob!: (self: .Path, pattern: Str) => Generator .Path
|
|
home!: () => .Path
|
|
iterdir!: (self: .Path) => Generator .Path
|
|
joinpath: (self: .Path, *other: PathLike) -> .Path
|
|
mkdir!: (self: .Path, mode := Nat, parents := Bool, exist_ok := Bool) => NoneType
|
|
open!: (self: .Path, mode := Str) => File!
|
|
rmdir!: (self: .Path) => NoneType
|
|
read_bytes!: (self: .Path) => Bytes
|
|
read_text!: (self: .Path, encoding := Str, errors := Str) => Str
|
|
rename!: (self: .Path, target: PathLike) => NoneType
|
|
resolve!: (self: .Path, strict := Bool) => .Path
|
|
samefile!: (self: .Path, other: PathLike) => Bool
|
|
touch!: (self: .Path, mode := Nat, exist_ok := Bool) => NoneType
|
|
unlink!: (self: .Path, missing_ok := Bool) => NoneType
|
|
write_bytes!: (self: .Path, data: Bytes) => NoneType
|
|
write_text!: (self: .Path, data: Str, encoding := Str, errors := Str) => NoneType
|
|
relative_to: (self: .Path, *other: PathLike) -> .Path
|
|
with_name: (self: .Path, name: Str) -> .Path
|
|
with_stem: (self: .Path, suffix: Str) -> .Path
|
|
with_suffix: (self: .Path, suffix: Str) -> .Path
|
|
.PosixPath: ClassType
|
|
.WindowsPath: ClassType
|