Newscoop\Storage::isWritable PHP Метод

isWritable() публичный Метод

Test is writable
public isWritable ( string $key ) : boolean
$key string
Результат boolean
    public function isWritable($key)
    {
        $info = new \SplFileInfo("{$this->root}/{$key}");
        return $info->isWritable();
    }

Usage Example

Пример #1
0
 /**
  * Test is writable
  *
  * @param string $dest
  * @return bool
  */
 public function isWritable($dest)
 {
     return $this->storage->isWritable($dest);
 }