From ab45524961c0f93af5c147aeaa86cf9a741406ed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Jun 2006 13:43:10 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Ajout=20d'une=20fonction=20=E9volu=E9e?= =?UTF-8?q?=20pour=20lister=20le=20contenu=20d'un=20r=E9pertoire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index d8360f8f917..91f1192a7b8 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -1910,6 +1910,10 @@ function create_exdir($dir) */ function dolibarr_dir_list($path, $types="all", $recursive=0, $filter="", $excludefilter="", $sortcriteria="", $sortorder=SORT_ASC) { + dolibarr_syslog("functions.inc.php::dolibarr_dir_list $path"); + + if (! is_dir($path)) return array(); + if ($dir = opendir($path)) { $file_list = array();