Navigation

  • index
  • modules |
  • fluentfs 0.4.0 documentation »
  • fluentfs.filelike.sym_link.SymLink

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

final_target

The final target of this symbolic link.

name

path

The maximally expanded path of the file-like object.

relative_path

relpath

target

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.

property target: FileLike¶

The immediate 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 b.txt and NOT a.txt.

Table of Contents

  • fluentfs.filelike.sym_link.SymLink
    • SymLink
      • SymLink.__init__()
      • SymLink.final_target
      • SymLink.path
      • SymLink.target

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • fluentfs 0.4.0 documentation »
  • fluentfs.filelike.sym_link.SymLink
© Copyright 2022, uhasker. Created using Sphinx 5.3.0.