From 0dd58f3038214badeca29c5d2f35f0457212873b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 2 May 2009 12:45:06 +0000 Subject: [PATCH] "removing file_exists() again and suppressing the warning of lstat() if file does not exist, as file_exists calls stat(), which resolves sysmlinks first and costs more then double the time on dirs with many symlinks" --- filemanager/cli.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/filemanager/cli.php b/filemanager/cli.php index 49daae26f1..35f943207f 100755 --- a/filemanager/cli.php +++ b/filemanager/cli.php @@ -9,6 +9,8 @@ * @copyright (c) 2007/8 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ + * + * @todo --domain does NOT work with --user root_* for domains other then the first in header.inc.php */ chdir(dirname(__FILE__)); // to enable our relative pathes to work @@ -603,7 +605,7 @@ function do_stat($url,$long=false,$numeric=false,$full_path=false) { $bname = basename($bname); } - if (!file_exists($url) || !($stat = lstat($url))) + if (!($stat = @lstat($url))) { echo "$bname: no such file or directory!\n"; }