Vote count: 0
I want to check if a boost::filesystem::path provided by a user is actually a file which is createable. Createable means: the directory in front of the filename exists.
std::string input = ~/some/dir/file.xyz
boost::filesystem::path path(input);
if (~/some/dir is a directory) // <-- How to get this?
return true;
What's a solution with boost::filesystem? Or maybe there are better tools?
asked 2 mins ago
How to check with boost::filesystem if a path is a creatable file?
Aucun commentaire:
Enregistrer un commentaire