Parent Directory
|
Revision Log
|
Patch
| Revision 1.2 by sysadm, Wed Apr 23 05:13:57 2025 UTC | Revision 1.3 by sysadm, Sun Apr 27 04:32:05 2025 UTC | |
|---|---|---|
| # | Line 2 | Line 2 |
| 2 | function delTree($dir) | function delTree($dir) |
| 3 | { | { |
| 4 | $files = array_diff(scandir($dir), array('.', '..')); | $files = array_diff(scandir($dir), array('.', '..')); |
| 5 | ||
| 6 | foreach ($files as $file) | foreach ($files as $file) |
| 7 | { | { |
| 8 | if (is_dir("$dir/$file")) | if (is_dir("$dir/$file")) |
| # | Line 14 | Line 14 |
| 14 | unlink("$dir/$file"); | unlink("$dir/$file"); |
| 15 | } | } |
| 16 | } | } |
| 17 | ||
| 18 | return rmdir($dir); | return rmdir($dir); |
| 19 | } | } |
| 20 | ?> | ?> |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |