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

Parameters
  • 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.

Returns

absolute path if a valid directory