Validates that every path of a character value can be written: an existing file or directory must be writable, and a path that does not exist yet needs a writable parent directory. Use it for output files and directories.
Details
Writability is judged by file.access(). On Windows it reflects
the read-only attribute and not access control lists, so a directory
that is denied by permissions can still pass. The check cannot tell
whether the disk has room.
See also
Other file checks:
require_dir_exists(),
require_file_exists(),
require_readable()