can-write-to-dir

Returns true if the current process has permission to write to the specified directory