fluentfs.filelike.sym_link.SymLink¶
- class fluentfs.filelike.sym_link.SymLink(path: str, expand_user: bool = True, expand_vars: bool = True)¶
Bases:
FileLike
- __init__(path: str, expand_user: bool = True, expand_vars: bool = True) None ¶
Methods
__init__
(path[, expand_user, expand_vars])Attributes
The final target of this symbolic link.
name
The maximally expanded path of the file-like object.
relative_path
relpath
The immediate target of this symbolic link.
- property final_target: Union[File, Dir]¶
The final target of this symbolic link.
For example if you have a symbolic link c.txt pointing to b.txt, which in turn points to a.txt, then this property will return a.txt and NOT b.txt.
- property path: str¶
The maximally expanded path of the file-like object.