I need a lightweight cross-platform file system library for game development. I want to ship my games on Windows, Linux and Mac.
As far as I know, using dirent.h works on all three platforms. However, I wanted to know if a library that is simpler to use exists - using directly dirent was confusing for me and I didn't get anywhere.
I also tried Boost, but I don't like the fact that it's not lightweight and it gave me trouble on Unix ports of my game.
Features I require are:
I've created my own file system library (tested on Windows and Linux, both with GCC and Clang).
You can find it in the SSVUtils library: https://github.com/SuperV1234/SSVUtils
SSVUtils has no external dependencies.
Example usage:
log("Getting all page.json files", "loadPages");
string pagesPath("Json/Pages/");
vector<string> pageJsonPaths{getScan<Mode::Recurse, Type::File, Pick::ByName>(pagesPath, "page.json")};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With