[#IsDirWritable] = IsDirWritable :mrdocs: Check if a directory is writable by creating a temporary file on it. == Synopsis Declared in `<util/fs_helpers.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsDirWritable(xref:fs/path.adoc[fs::path] const& dir_path); ---- == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if dir_path is not a directory. |=== == Return Value true if a temporary file could be created and removed, false otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *dir_path* [in] | Path of the directory to test |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#