private function _copyChanges($path)
  {
    $entity = $this->getEntity($path);
    $source = $entity->path();

    $root = $this->getRoot()->path();
    $destination = $root . "/" . $path;

    if ($entity->is_file()) {
      copy($source, $destination);
    } else {
      $mode = fileperms($source);
      mkdir($destination, $mode);

      $list = $this->getList($path);
      foreach ($list as $file) {
        /* @var $file Entity_Interface */
        $this->_copyChanges($path . "/" . $file->basename());
      }
    }
  }
private function _copyChanges($path)
  {
    $entity = $this->getEntity($path);
    $source = $entity->path();

    $root = $this->getRoot()->path();
    $destination = $root . "/" . $path;

    if ($entity->is_file()) {
      copy($source, $destination);
    } else {
      $mode = fileperms($source);
      mkdir($destination, $mode);

      $list = $this->getList($path);
      foreach ($list as $file) {
        /* @var $file Entity_Interface */
        $this->_copyChanges($path . "/" . $file->basename());
      }
    }
  }
private function _copyChanges ( $ path ) { $ entity = $ this -> getEntity ( $ path ) ; $ source = $ entity -> path ( ) ; $ root = $ this -> getRoot ( ) -> path ( ) ; $ destination = $ root . "/" . $ path ; if ( $ entity -> is_file ( ) ) { copy ( $ source , $ destination ) ; } else { $ mode = fileperms ( $ source ) ; mkdir ( $ destination , $ mode ) ; $ list = $ this -> getList ( $ path ) ; foreach ( $ list as $ file ) { /* @var $file Entity_Interface */ $ this -> _copyChanges ( $ path . "/" . $ file -> basename ( ) ) ; } } }
Copy new virtual files to real fs

@param string $path Path

@return null
Copy new virtual files to real fs