$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
";
// Just print out the filename
}
}
}
closedir( $dh );
// Close the directory handle
}
?>