public function Archive_Tar8b7c:f320:99b9:690f:4595:cd17:293a:c069_dirCheck public Archive_Tar8b7c:f320:99b9:690f:4595:cd17:293a:c069_dirCheck($p_dir) Check if a directory exists and create it (including parent dirs) if not. Parameters  string $p_dir directory to check: Return value  bool true if the directory exists or was created File
 modules/system/system.tar.inc, line 2364  Class
 
Archive_Tar   Code public function _dirCheck($p_dir) 
 {
  clearstatcache();
  if ((@is_dir($p_dir)) || ($p_dir == '')) {
    return true;
  }

  $p_parent_dir = dirname($p_dir);

  if (($p_parent_dir != $p_dir) && 
    ($p_parent_dir != '') && 
    (!$this->_dirCheck($p_parent_dir))
    ) {
    return false;
  }

  if (!@mkdir($p_dir, 0777)) {
    $this->_error("Unable to create directory '$p_dir'");
    return false;
  }

  return true;
}


    
{'path': 'public/docs/drupal~7/modules-system-system.tar.inc/function/archive_tar-_dircheck/7.x.html', 'source': 'DevDocs.IO'}