directory - php directoryiterator does not see file -


i looping trough directory .tar files new directoryiterator(). script not 'see' file. thinking file corrupt somehow can open in windows.

any ideas? in advance

$tree = new recursivedirectoryiterator("ssh2.sftp://" . $connection . "/data/monitor/" . date("y", strtotime($date)) . "/" . date("m", strtotime($date)) . "/" . date("d", strtotime($date)) . "/");  foreach(new recursiveiteratoriterator($tree) $context) {     if($context->getfilename() != "." && $context->getfilename() != "..") {         // handle file      } } 


Comments