title: Fatal error: Class RecursiveDirectoryIterator not found
body: <p>I have two question,
   first I have this error : Fatal error: Class 'ClicShopping\Sites\ClicShoppingAdmin\RecursiveDirectoryIterator' not found in
  I don't know exactly why.</p>
  
  <p>Do you need to use namespace and how to write the function ?</p>
  
  <pre><code>use \RecursiveDirectoryIterator
  </code></pre>
  
  <p>My second question is : how the exclude files like license or  readme.txt in the copy.</p>
  
  <p>Thanks</p>
  
  <pre><code>    class toto {
  
          public static function smartCopy($source, $dest) {
    @mkdir($dest, 0755);
    foreach (
  
  
      $iterator = new \RecursiveIteratorIterator(
        new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS),
        \RecursiveIteratorIterator::SELF_FIRST
      ) as $item
    ) {
      if ($item-&gt;isDir()) {
        mkdir($dest . DIRECTORY_SEPARATOR . $iterator-&gt;getSubPathName());
      } else {
  
        if ($item != 'README.md' &amp;&amp; $item != 'LICENSE') {
          copy($item, $dest . DIRECTORY_SEPARATOR . $iterator-&gt;getSubPathName());
        }
      }
    }
  }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public function getInstallModuleFixe($file) {
  
        $zip_file = DIR_FS_CATALOG . 'plugin_download/' . $file .'.zip';
        $archive = new \PclZip($zip_file);
  
        $list = $archive-&gt;listContent();
        if ($list == 0) {
          die("Error : ".$archive-&gt;errorInfo(true));
        }
  
  
        $extract = $archive-&gt;extract(PCLZIP_OPT_EXTRACT_DIR_RESTRICTION, DIR_FS_CATALOG . 'plugin_download',
                                     PCLZIP_OPT_PATH, DIR_FS_CATALOG . 'plugin_download'
        );
  
  
        if (is_dir(DIR_FS_CATALOG . 'plugin_download/'. $file.'-master')) {
          static::smartCopy(DIR_FS_CATALOG . 'plugin_download/'. $file.'-master' , DIR_FS_CATALOG . 'plugin_download/test/');
        } else {
          echo 'no copy';
          die();
        }
  }
  </code></pre>