I'm writing a C++ windows program that ends up writing a bunch of directories and sub directories. The code is running exactly how I want it to.
However, I'm hitting a point where I've created a bunch of sub directories and the path is too long when I try to either write or make another sub directory and it crashes.
Q: Is there a way around this (like linux directory pointers) for windows?
Some of the code that writes the folders and files:
path = path + "\\" + s.name.substr(0,s.name.size()-2);
mkdir(path.c_str());
//Write current file to folder anyway
writeToFile(opendir(path.c_str()), ss);
The code is just going through the above over and over again to create a semi map/tree using folders and files.