Function parse_directory(const std::string&, bool, bool)

Function Documentation

fs::path parse_directory(const std::string &x, bool exists = true, bool create = false)

Check if the path is already existing and is a directory - create one if asked

  • x – Path of directory to be check

  • exists – directory at the end of this method should exist

  • create – create the directory if not existing while expected to.


absolute path if a valid directory