Interface to local filesystem path definition.
class Path( [path] )
init | Interface to local filesystem path definition. |
extension | File extension part. |
file | File part. |
filename | File name part. |
location | Location specificator. |
path | Complete path. |
unit | Unit specificator. |
Interface to local filesystem path definition.
This class offers an object oriented interface to access path elements given a complete path, or to build a path from its elements.
Interface to local filesystem path definition.
init Path( [path] )
path | The path that will be used as initial path. | ||
Raises: |
|
This class offers an object oriented interface to access path elements given a complete path, or to build a path from its elements.
File extension part.
Raises: |
|
This element coresponds to the first last of the file element, if it is divided into a filename and an extension by a "." dot.
File part.
Raises: |
|
This is the part of the path that identifies an element in a directory. It includes everything after the last "/" path separator.
File name part.
Raises: |
|
This element coresponds to the first part of the file element, if it is divided into a filename and an extension by a "." dot.
Location specificator.
Raises: |
|
This is the "path to file". It can start with a "/" or not; if it starts with a "/" it is considered absolute.
Complete path.
Raises: |
|
This is the complete path referred by this object.
Unit specificator.
Raises: |
|
This is the unit specificator (disk name) used in some filesystems. It is separated by the rest of the path via a ":". According to RFC 3986 it always starts with a "/", which is automatically added if absent.