philh_myftp_biz.pc.Path¶
Module Contents¶
Classes¶
API¶
- class philh_myftp_biz.pc.Path.Path(path: Any)¶
Bases:
philh_myftp_biz.pc._pc._PathInitialization
- __enter__() None¶
- __exit__(*_) None¶
- property ctime¶
- cd() philh_myftp_biz.pc.Path._cd¶
Change the working directory to path
- is_child(parent: philh_myftp_biz.pc.Path.Path) bool¶
Check if this path is a child or descendant of a parent directory
- is_parent(child: philh_myftp_biz.pc.Path.Path) bool¶
Check if this path is a parent or ancestor of a path
Check if this path is related to another
- child(name: str) philh_myftp_biz.pc.Path.Path¶
- __format__(spec: str) str¶
- __eq__(other: object) bool¶
- property size: None | int¶
Get File Size
- property fsize: str¶
- property children: Generator[philh_myftp_biz.pc.Path.Path, None, None]¶
- property descendants: Generator[philh_myftp_biz.pc.Path.Path, None, None]¶
- property is_empty: bool¶
Recursively check if the current directory contains any files
- parent() philh_myftp_biz.pc.Path.Path¶
- sibling(item: str) philh_myftp_biz.pc.Path.Path¶
- type() None | str¶
- clear() None¶
Clear File Contents
- delete() None¶
- rename(dst: Any) philh_myftp_biz.pc.Path.Path¶
- seg(i: int = -1) str¶
Returns segment of path split by ‘/’ (Ignores last slash)
- copy(dst: philh_myftp_biz.pc.Path.Path) None¶
- move(dst: Any) None¶
- property in_use: bool¶
- open(mode: Literal[r, w, a, rb, wb, +]='r')¶
- property siblings¶
- __setitem__(key: Any, value: Any) None¶
- __getitem__(key: Any) None¶
- mkdir() None¶
- link(link: philh_myftp_biz.pc.Path.Path) None¶
- property hash: None | str¶
- with_ext(ext: str)¶
- clear_exif()¶
- XML: philh_myftp_biz.file.XML = None¶
- PKL: philh_myftp_biz.file.PKL = None¶
- JSON: philh_myftp_biz.file.JSON = None¶
- INI: philh_myftp_biz.file.INI = None¶
- YAML: philh_myftp_biz.file.YAML = None¶
- TXT: philh_myftp_biz.file.TXT = None¶
- ZIP: philh_myftp_biz.file.ZIP = None¶
- CSV: philh_myftp_biz.file.CSV = None¶
- TOML: philh_myftp_biz.file.TOML = None¶
- __getattr__(name: str)¶
- class philh_myftp_biz.pc.Path.PathPair¶
- src: philh_myftp_biz.pc.Path.Path | Any = None¶
- dst: philh_myftp_biz.pc.Path.Path | Any = None¶
- __setattr__(key: str, value: Any) None¶
- class philh_myftp_biz.pc.Path._cd(path: philh_myftp_biz.pc.Path.Path)¶
Initialization
- __via_with = False¶
- __enter__() None¶
- __exit__(*_) None¶
- open() None¶
- __call__ = None¶
- back() None¶
- class philh_myftp_biz.pc.Path._mtime¶
- path: philh_myftp_biz.pc.Path.Path = None¶
- set(mtime: int | from_stamp = None) None¶
- property current¶
- __int__()¶
- __float__()¶
- property stopwatch¶
- class philh_myftp_biz.pc.Path._set_access¶
- path: philh_myftp_biz.pc.Path.Path = None¶
- __paths() Generator[philh_myftp_biz.pc.Path.Path, None, None]¶
- readonly() None¶
- full() None¶
- class philh_myftp_biz.pc.Path._visibility¶
- path: philh_myftp_biz.pc.Path.Path = None¶
- hide() None¶
- show() None¶