mirror of https://github.com/itflow-org/itflow
Added remove directory function
This commit is contained in:
parent
86b0c1c45a
commit
709f88e1ee
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
function keygen()
|
||||
{
|
||||
$chars = "abcdefghijklmnopqrstuvwxyz";
|
||||
|
|
@ -25,4 +23,13 @@ function initials($str) {
|
|||
return $ret;
|
||||
}
|
||||
|
||||
function removeDirectory($path) {
|
||||
$files = glob($path . '/*');
|
||||
foreach ($files as $file) {
|
||||
is_dir($file) ? removeDirectory($file) : unlink($file);
|
||||
}
|
||||
rmdir($path);
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue