We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04e63e8 commit 8167f3dCopy full SHA for 8167f3d
1 file changed
dir_listing.php
@@ -80,6 +80,7 @@
80
81
while( false !== ($entry = readdir($dir_handle))){
82
83
+ //skip hidden files(optional), current folder ".", parent folder ".."
84
if ( ( strpos($entry,'.') === 0 and $show_hidden_files===false) | $entry == "." | $entry == ".." ){
85
continue;
86
}else if ( is_dir( $full_path.$entry ) ) {
@@ -89,6 +90,10 @@
89
90
}
91
92
93
+ //order folder and files
94
+ sort($folderlist);
95
+ sort($filelist);
96
+
97
//foldere is empty
98
if(count ($folderlist) == 0 and count ($filelist) == 0){
99
echo '<br><br><div class="container"><div class="alert alert-info text-center"><strong>This folder is empty</strong></div></div>';
0 commit comments