From 406f05cd56a6b4d8192ea00b15bb9edef68c7331 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Thu, 28 Dec 2017 13:43:46 +0100 Subject: functions for file and directory operations moved from functions.common to functions.files and recursive directory removal added --- functions.common.inc.php | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'functions.common.inc.php') diff --git a/functions.common.inc.php b/functions.common.inc.php index a9db566..e1d1f10 100644 --- a/functions.common.inc.php +++ b/functions.common.inc.php @@ -16,17 +16,6 @@ function generate_uuid() { ); } -function getDirectoryContent($path) { - if (dir_exists($path)) { - return array_diff(scandir($path), array('..', '.')); - } - return []; -} - -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; -- cgit v1.2.3