core/Command/Encryption/ChangeKeyStorageRoot.php
/**
	 * Make preparations to filesystem for saving a key file
	 *
	 * @param string $path relative to data/
	 */
Make preparations to filesystem for saving a key file
@param string $path relative to data
Make preparations to filesystem for saving a key file @param string $path relative to data
protected function prepareParentFolder($path) {
		$path = Filesystem::normalizePath($path);
		if ($this->rootView->file_exists($path) === false) {
			$sub_dirs = explode('/', ltrim($path, '/'));
			$dir = '';
			foreach ($sub_dirs as $sub_dir) {
				$dir .= '/' . $sub_dir;
				if ($this->rootView->file_exists($dir) === false) {
					$this->rootView->mkdir($dir);
				}
			}
		}
	}
protected function prepareParentFolder ( $ path ) { $ path = Filesystem :: normalizePath ( $ path ) ; if ( $ this -> rootView -> file_exists ( $ path ) === false ) { $ sub_dirs = explode ( '/' , ltrim ( $ path , '/' ) ) ; $ dir = '' ; foreach ( $ sub_dirs as $ sub_dir ) { $ dir .= '/' . $ sub_dir ; if ( $ this -> rootView -> file_exists ( $ dir ) === false ) { $ this -> rootView -> mkdir ( $ dir ) ; } } } }
Make preparations to filesystem for saving a key file
 @param string $path relative to data
Make preparations to filesystem for saving a key file @param string $path relative to data
// If the file resides within a subdirectory, create it