/**
 * Determine if the given path is writable.
 *
 * @return bool Returns TRUE if the given path exists and is writable, FALSE otherwise.
 */
public function isWritable(): bool

Examples

if ($filesystem->file('/foo/1.txt')->isWritable()) {
    // do something...
}

Getting Started

Methods

Filesystem
File
Directory