Check if a directory is writable.
The path to check.
A promised boolean indicating if the directory is writable.
Check if a directory is writable.