Make path api more understandable, breaks certain code and have makeabsolute and makerelative

This commit is contained in:
2025-04-19 10:25:04 -05:00
parent 4ec4011b46
commit 82a3131e1b

16
examples/pathtest.cpp Normal file
View File

@ -0,0 +1,16 @@
#include "TessesFramework/Filesystem/VFS.hpp"
#include <iostream>
#include <string>
using namespace Tesses::Framework::Filesystem;
int main(int argc, char** argv)
{
VFSPath path("C:/home/user/file");
VFSPath path2("D:/home/user/file");
VFSPath path3("C:/home/user");
std::cout << path.MakeRelative(path2).ToString() << std::endl;
std::cout << (path3 / path.MakeRelative(path2) / "John").CollapseRelativeParents().ToString() << std::endl;
return 0;
}