Lines Matching refs:directory
65 /// Creates the report's top directory and fails if it exists.
67 /// \param directory The directory to create.
68 /// \param force Whether to wipe an existing directory or not.
70 /// \throw std::runtime_error If the directory already exists; this is a user
72 /// \throw fs::error If the directory creation fails for any other reason.
74 create_top_directory(const fs::path& directory, const bool force)
77 if (fs::exists(directory))
78 fs::rm_r(directory);
82 fs::mkdir(directory, 0755);
85 throw std::runtime_error(F("Output directory '%s' already exists; "
87 directory);
98 /// \return A filename unique within a directory with a trailing HTML extension.
140 /// The top directory in which to create the HTML files.
217 /// Instantiate a template to generate an HTML file in the output directory.
221 /// searched for in the installed directory, so do not provide a path.
223 /// be created within the output directory.
262 /// \param directory_ The directory in which to create the HTML files.
350 /// Writes the index.html file in the output directory.
397 "force", "Wipe the output directory before generating the new report; "
400 "output", "The directory in which to store the HTML files",
426 const fs::path directory =
428 create_top_directory(directory, cmdline.has_option("force"));
429 html_hooks hooks(ui, directory, types);