File/src/File.php
public function writable()
    {
        return file_exists($this->filename) ? is_writable($this->filename) && is_file($this->filename) : $this->writableDir(\dirname($this->filename));
    }
public function writable()
    {
        return file_exists($this->filename) ? is_writable($this->filename) && is_file($this->filename) : $this->writableDir(\dirname($this->filename));
    }
public function writable ( ) { return file_exists ( $ this -> filename ) ? is_writable ( $ this -> filename ) && is_file ( $ this -> filename ) : $ this -> writableDir ( \ dirname ( $ this -> filename ) ) ; }
Check if file can be written.

@return bool
Check if file can be written .