Open GoogleCodeExporter opened 8 years ago
We run into the same issue. Here's the patch:
Index: classes/kfmDirectory.php
===================================================================
--- classes/kfmDirectory.php (revision x)
+++ classes/kfmDirectory.php (revision y)
@@ -285,7 +285,14 @@
return $directories;
}
function hasSubdirs(){
- $dirs=new DirectoryIterator($this->path());
+ try
+ {
+ $dirs=new DirectoryIterator($this->path());
+ }
+ catch ( Exception $e )
+ {
+ return false;
+ }
foreach($dirs as $dir){
if($dir->isDot())continue;
if($dir->isDir())return true;
(You still run in a timeout if you click the directory without permission
later. But at least you can work now.)
Original comment by tho...@nunninger.info
on 19 Jan 2012 at 1:29
Original issue reported on code.google.com by
ghy...@gmail.com
on 11 Jan 2011 at 1:28