kirby/vendor/getkirby/toolkit/lib/folder.php
/**
   * Checks if the directory is writable
   * 
   * @param boolean $recursive
   * @return boolean
   */
Checks if the directory is writable

@param boolean $recursive
@return boolean
Checks if the directory is writable @param boolean $recursive @return boolean
public function isWritable($recursive = false) {
    if($recursive) {
      if(!$this->isWritable()) return false;
      foreach($this->content() as $f) {
        if(!$f->isWritable(true)) return false;
      }
      return true;
    }
    return is_writable($this->root);
  }
public function isWritable ( $ recursive = false ) { if ( $ recursive ) { if ( ! $ this -> isWritable ( ) ) return false ; foreach ( $ this -> content ( ) as $ f ) { if ( ! $ f -> isWritable ( true ) ) return false ; } return true ; } return is_writable ( $ this -> root ) ; }
Checks if the directory is writable
Checks if the directory is writable