new function dir_exists() introduced

This commit is contained in:
steckbrief 2017-11-26 11:44:14 +01:00
parent 03cf2a22fe
commit b713fcfb99

View file

@ -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;