Add PathIsRelative()

This commit is contained in:
Alex 2023-05-05 20:02:53 +03:00
parent 7d939c001b
commit 1df78907fc
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -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; }