path handler implementing POSIX specific functionality
More...
#include <FsUtil.qm.dox.h>
|
|
| constructor () |
| | creates the object and sets the delimiter
|
| |
|
| string | joinPathsIntern (list< string > paths) |
| | Returns the path resulting from joining the given paths.
|
| |
|
Public Attributes inherited from FsUtil::PathHandler |
|
list< string > | delimiters |
| | path delimiters - to be set by platform specific path handlers
|
| |
path handler implementing POSIX specific functionality
◆ joinPathsIntern()
| string FsUtil::PosixPathHandler::joinPathsIntern |
( |
list< string > |
paths | ) |
|
|
private |
Returns the path resulting from joining the given paths.
- Parameters
-
| paths | a list of paths to join |
- Returns
- all paths joined into one valid path (i.e. delimiters are added/removed as needed) except for cases when one of the paths (in the list) is an absolute path - in such cases that path is considered a new start of the resulting path. The resulting path is not normalized (i.e. "/path/to/../../file.txt" is a correct result of join("/path/to", "../../file.txt");). Since the second parameter is a softlist, this variant also works for joining two string paths.