mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add PathIsRelative()
This commit is contained in:
parent
7d939c001b
commit
1df78907fc
@ -176,6 +176,14 @@ namespace VirtualFileSystem
|
||||
return file;
|
||||
}
|
||||
|
||||
bool Virtual::PathIsRelative(const char *Path)
|
||||
{
|
||||
vfsdbg("PathIsRelative( Path: \"%s\" )", Path);
|
||||
bool IsRelative = cwk_path_is_relative(Path);
|
||||
vfsdbg("PathIsRelative()->%s", IsRelative ? "true" : "false");
|
||||
return IsRelative;
|
||||
}
|
||||
|
||||
Node *Virtual::GetParent(const char *Path, Node *Parent)
|
||||
{
|
||||
vfsdbg("GetParent( Path: \"%s\" Parent: \"%s\" )", Path, Parent->Name);
|
||||
|
@ -158,6 +158,8 @@ namespace VirtualFileSystem
|
||||
*/
|
||||
File ConvertNodeToFILE(Node *node);
|
||||
|
||||
bool PathIsRelative(const char *Path);
|
||||
|
||||
Node *GetParent(const char *Path, Node *Parent);
|
||||
Node *GetRootNode() { return FileSystemRoot; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user