Files
tessesframework/examples/pathtest.cpp
Mike Nolan 8413c67ec6
Some checks failed
Build and Deploy on Tag / 🔨 Build for Arch Linux/Static Builds (push) Failing after 45s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Has been cancelled
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
2026-05-27 03:02:16 -05:00

17 lines
533 B
C++

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