Open advfr opened 6 years ago
I am using the default PHP Function is_dir
and I'm not sure what it can't handle the dot. I tried a test and the folder doesn't show up anywhere. I may try to look into again in the future, but not sure at the moment.
@advfr , you may try replace is_dir($d)
with different method test false !== ($f = readdir($d))
+1
I have also encountered this problem some time ago.
It seems that by replacing if( !$file_ext AND is_dir($file)) $file_ext = "dir";
with if( is_dir($file)) $file_ext = "dir";
in function display_block( $file )
, the problem goes away.
I think this is due to function ext($filename)
returning true if the filename contains a ' . ' regardless of it being a directory or a file.
Hope this helps.
Hello Thanks you Guys.
Works fine beeell1 !
Thanks a lot !
Hello Hal and thank you for your great job ! Hey ! Am I the only one to see folders containing " . " inside as file, so not opening as a folder ? Can you try too ?
Thanks !