From c35a87e9cf17a4219dcba9d891e96a47618d580b Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Fri, 2 Nov 2012 02:18:24 -0400 Subject: [PATCH] =?UTF-8?q?Added=20=E2=94=94=20character=20for=20better=20?= =?UTF-8?q?distinction=20between=20files=20and=20dirs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload-list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload-list.php b/upload-list.php index 1adaf2c..2202ef1 100644 --- a/upload-list.php +++ b/upload-list.php @@ -14,12 +14,12 @@ function getDirectory( $path = '.', $level = 0 ){ // show the directory tree. if( is_dir( "$path/$file" ) ){ // Its a directory, so we need to keep reading down... - echo "$spaces $file
"; + echo "$spaces └ $file
"; getDirectory( "$path/$file", ($level+1) ); // Re-call this same function but on a new directory. // this is what makes function recursive. } else { - echo "$spaces $file
"; + echo "$spaces └ $file
"; // Just print out the filename } }