Module :
filepath
Module Overview
This module provides a platform-independent API for working with file paths.
For information on the operations, which you can perform with this module, see the below Functions.
- For an example on the usage of the operations, see the File Path Example.
| absolute |
Retrieves the absolute path from the provided location. |
| build |
I
Joins any number of path elements into a single path. |
| extension |
I
Retrieves the extension of the file path. |
| filename |
I
Retrieves the base name of the file from the provided location, which is the last element of the path. |
| getPathListSeparator |
I
Returns the path variable's separating character for paths of the underlying operating system. |
| getPathSeparator |
I
Returns the path separator of the underlying operating system. |
| isAbsolute |
I
Reports whether the path is absolute. |
| isReservedName |
I
Reports whether the filename is reserved. |
| matches |
Reports whether the complete filename (not just a substring of it) matches the provided Glob pattern. |
| normalize |
I
Returns the shortest path name equivalent to the given path. |
| parent |
I
Returns the enclosing parent directory. |
| relative |
I
Returns a relative path, which is logically equivalent to the target path when joined to the base path with an intervening separator. |
| resolve |
Returns the filepath after the evaluation of any symbolic links. |
| split |
I
Splits a list of paths joined by the OS-specific path separator. |
| Error |
Represents filepath related errors. |
| FileNotFoundError |
Represents error occur when the file/directory does not exist at the given filepath. |
| GenericError |
Represents generic error for filepath |
| IOError |
Represents IO error occur when trying to access the file at the given filepath. |
| InvalidPathError |
Represents error occur when the given file path is invalid. |
| InvalidPatternError |
Represent error occur when the given pattern is not a valid filepath pattern. |
| NotLinkError |
Represents error occur when the file at the given filepath is not a symbolic link. |
| RelativePathError |
Represents an error that occurs when the given target filepath cannot be derived relative to the base filepath. |
| SecurityError |
Represents security error occur when trying to access the file at the given filepath. |
| UNCPathError |
Represents error occur in the UNC path. |