Class to represent filesystem paths and the base class for all file and folder objects. Contains methods for file path manipulation.
File paths should always be absolute paths and can e.g. not start with "../" or "./". On windows they should always start with either a drive letter or a share drive. On unix they should start at the root of the filesystem.
Paths can be handled either as strings representing a local file path ("/" or "" separated), strings representing a file uri ("file:///" or "smb://") or list of path names.
Class Method | new_from_zim_config |
Returns a new object based on the string representation for that path |
Method | __eq__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | commonparent |
Undocumented |
Method | get_abspath |
No summary |
Method | get_childpath |
Undocumented |
Method | ischild |
Undocumented |
Method | parent |
Undocumented |
Method | parents |
Undocumented |
Method | relpath |
Undocumented |
Method | serialize_zim_config |
Returns the file path as string for serializing the object |
Class Variable | __slots__ |
Undocumented |
Instance Variable | islocal |
Undocumented |
Instance Variable | path |
Undocumented |
Instance Variable | pathnames |
Undocumented |
Property | basename |
Undocumented |
Property | dirname |
Undocumented |
Property | uri |
Undocumented |
Property | userpath |
Undocumented |
get_childpath()
to only get child paths).