Check if a directory is writable by creating a temporary file on it.
| Name | Thrown on |
|---|---|
std::runtime_error | if dir_path is not a directory. |
true if a temporary file could be created and removed, false otherwise.
| Name | Description |
|---|---|
| dir_path [in] | Path of the directory to test |