Added └ character for better distinction between files and dirs

This commit is contained in:
alopexc0de 2012-11-02 02:18:24 -04:00
parent 3ef4bc1a2a
commit c35a87e9cf
1 changed files with 2 additions and 2 deletions

View File

@ -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 "<strong>$spaces <a href='$path/$file'>$file</a></strong><br />";
echo "<strong>$spaces <a href='$path/$file'>$file</a></strong><br />";
getDirectory( "$path/$file", ($level+1) );
// Re-call this same function but on a new directory.
// this is what makes function recursive.
} else {
echo "$spaces <a href='$path/$file'>$file</a><br />";
echo "$spaces <a href='$path/$file'>$file</a><br />";
// Just print out the filename
}
}