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);
 }