title: PHP function 'scandir' not working on WordPress hosted on windows
body: <p>When i am using scandir function i get different  results on linux and windows.</p>
  
  <p>Windows i see only folder name</p>
  
  <p>Linux it does the job under </p>
  
  <p>I run a check if WordPress files has been changed ?</p>
  
  <pre><code>function find_all_files($dir, $deep) 
  { 
    if(strpos($dir,"wp-content") == false){
  
      $root = scandir($dir); 
      foreach($root as $value) 
      { 
        if($value === '.' || $value === '..') {continue;} 
        if(is_file("$dir/$value")) {
              $tmpFile = "$dir/$value";
              if(5000000&gt;@filesize($tmpFile)){
  
              $result[]="$tmpFile";
              }
              continue;
          } 
  
      $tmp = "$dir/$value";
        if(strpos($tmp,"wp-content") == false){   
          if($deep == true){
              foreach(@$this-&gt;find_all_files("$dir/$value",true) as $value) 
              { 
                $tmpFile = $value;
                    if(5000000&gt;@filesize($tmpFile)){
  
                      $result[]="$tmpFile"; 
                      }
              } 
          }
        }
      }
      //var_dump($result);
  
      return $result; 
      }
  }
  </code></pre>