File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ private function process($file)
385385 {
386386 if (is_dir ($ file ) && isset ($ this ->mOptions ['R ' ])) {
387387 $ iterator = new RecursiveIteratorIterator (
388- new RecursiveDirectoryIterator (
388+ new ReadableRecursiveDirectoryIterator (
389389 $ file ,
390390 FilesystemIterator::SKIP_DOTS |
391391 FilesystemIterator::FOLLOW_SYMLINKS
@@ -432,3 +432,14 @@ public function __toString() {
432432 return "PHPCtags: {$ this ->message }\n" ;
433433 }
434434}
435+
436+ class ReadableRecursiveDirectoryIterator extends RecursiveDirectoryIterator {
437+ function getChildren () {
438+ try {
439+ return new ReadableRecursiveDirectoryIterator ($ this ->getPathname ());
440+ } catch (UnexpectedValueException $ e ) {
441+ echo "\nPHPPCtags: {$ e ->getMessage ()} - {$ this ->getPathname ()}\n" ;
442+ return new RecursiveArrayIterator (array ());
443+ }
444+ }
445+ }
You can’t perform that action at this time.
0 commit comments