File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,16 @@ private function createFileIterator($dir)
253253 $ acceptFiles = is_array ($ this ->acceptFiles ) ? $ this ->acceptFiles : preg_split ('#[,\s]+# ' , $ this ->acceptFiles );
254254 $ iterator = Nette \Utils \Finder::findFiles ($ acceptFiles )
255255 ->filter (function (SplFileInfo $ file ) use (&$ disallow ) {
256- return !isset ($ disallow [str_replace ('\\' , '/ ' , $ file ->getRealPath ())]);
256+ return $ file ->getRealPath () === false
257+ ? true
258+ : !isset ($ disallow [str_replace ('\\' , '/ ' , $ file ->getRealPath ())]);
257259 })
258260 ->from ($ dir )
259261 ->exclude ($ ignoreDirs )
260262 ->filter ($ filter = function (SplFileInfo $ dir ) use (&$ disallow ) {
263+ if ($ dir ->getRealPath () === false ) {
264+ return true ;
265+ }
261266 $ path = str_replace ('\\' , '/ ' , $ dir ->getRealPath ());
262267 if (is_file ("$ path/netterobots.txt " )) {
263268 foreach (file ("$ path/netterobots.txt " ) as $ s ) {
You can’t perform that action at this time.
0 commit comments