[#IsDirWritable]
= IsDirWritable
:mrdocs:

Check if a directory is writable by creating a temporary file on it&period;

== Synopsis

Declared in `&lt;util&sol;fs&lowbar;helpers&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsDirWritable(xref:fs/path.adoc[fs::path] const& dir&lowbar;path);
----

== Exceptions

[cols="1,4"]
|===
| Name| Thrown on
| `std&colon;&colon;runtime&lowbar;error`
| if dir&lowbar;path is not a directory&period;
|===

== Return Value

true if a temporary file could be created and removed, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dir&lowbar;path* [in]
| Path of the directory to test
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
