Miosix
2.0alpha1
|
Public Member Functions | |
PathResolution (const map< StringPart, intrusive_ref_ptr< FilesystemBase > > &fs) | |
ResolvedPath | resolvePath (string &path, bool followLastSymlink) |
This class implements the path resolution logic
|
inline |
Constructor
fs | map of all mounted filesystems |
ResolvedPath miosix::PathResolution::resolvePath | ( | string & | path, |
bool | followLastSymlink | ||
) |
The main purpose of this class, resolve a path
path | inout parameter with the path to resolve. The resolved path will be modified in-place in this string. The path must be absolute and start with a "/". The caller is responsible for that. |
followLastSymlink | if true, follow last symlink |