The LocalFileSystemHandler class is used for all file system operations. It wraps the standard PHP filesystem functions with error handling and allows for the filesystem functions to be extended in a standardized way.
The following operations are supported
if (!($objFileSystem = AppRegistry::get('FileSystem', false))) {
if (AppLoader::includeExtension('files/', $strFileSystem = AppConfig::get('FileSystem') . 'FileSystemHandler')) {
$objFileSystem = new $strFileSystem();
AppRegistry::register('FileSystem', $objFileSystem);
}
}
if (!$objFileSystem->isDirectory('/foo/bar')) {
$blnResult = $objFileSystem->createDirectory('/foo/bar', 0755, true);
}