mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 04:14:54 +00:00
Added remove directory function
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function keygen()
|
function keygen()
|
||||||
{
|
{
|
||||||
$chars = "abcdefghijklmnopqrstuvwxyz";
|
$chars = "abcdefghijklmnopqrstuvwxyz";
|
||||||
@@ -25,4 +23,13 @@ function initials($str) {
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeDirectory($path) {
|
||||||
|
$files = glob($path . '/*');
|
||||||
|
foreach ($files as $file) {
|
||||||
|
is_dir($file) ? removeDirectory($file) : unlink($file);
|
||||||
|
}
|
||||||
|
rmdir($path);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user