new function dir_exists() introduced
This commit is contained in:
parent
03cf2a22fe
commit
b713fcfb99
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ function generate_uuid() {
|
|||
);
|
||||
}
|
||||
|
||||
function dir_exists($path) {
|
||||
return file_exists($path) && is_dir($path);
|
||||
}
|
||||
|
||||
function format_size($size, $precision = 2) {
|
||||
$sizes = ['bytes', 'Kb', 'Mb', 'Gb', 'Tb'];
|
||||
$i = 0;
|
||||
|
|
Loading…
Reference in a new issue