title: Ubuntu PHP CLI is it possible to bypass hidden (dot) directories when using directoryiterator
body: <p>Recursively iterating thru directories fails when a hidden (dot) directory is encountered.</p>
  
  <pre><code>$dir  = new RecursiveDirectoryIterator($startDirectory, RecursiveDirectoryIterator::SKIP_DOTS);
  $files = new RecursiveIteratorIterator($dir, RecursiveIteratorIterator::SELF_FIRST);
  
  foreach ($files as $file) {
  </code></pre>
  
  <p>Fails if $dir is a hidden file e.g. .config. Is there any way to bypass hidden files</p>