- Timestamp:
- 12/19/10 16:38:27 (17 months ago)
- Files:
-
- 1 modified
-
branches/1.5/libs/FileSystem.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/libs/FileSystem.php
r2315 r2321 70 70 { 71 71 foreach (new DirectoryIterator($path) as $file) { 72 $file = new SplFileInfo($file_name); 73 if ($file->isFile()) { 74 @unlink($path.$file->getFilename()); 75 } 76 if ($delete_directories && $file->isDir()) { 77 $this->delete_files($file->getRealPath(), TRUE, TRUE); 72 if (!$file->isDot()) { 73 if ($file->isFile()) { 74 unlink($file->getRealPath()); 75 } 76 if ($delete_directories && $file->isDir()) { 77 self::deleteFiles($file->getRealPath(), TRUE, TRUE); 78 } 78 79 } 79 80 } 80 81 if ($remove_directory && is_dir($path)) { 81 @rmdir($path);82 rmdir($path); 82 83 } 83 84 return FALSE;