original_string: public function export($product) {
          $files = $product->generateFiles();
          mkdir($this->target, 0777, true);
          
          foreach ($files as $file)
              if (!$file->getContent()->copy(fphp\Helper\Path::join($this->target, $file->getTarget())))
                  throw new LocalExporterException("could not copy file \"{$file->getTarget()}\"");
      }
code: public function export($product) {
          $files = $product->generateFiles();
          mkdir($this->target, 0777, true);
          
          foreach ($files as $file)
              if (!$file->getContent()->copy(fphp\Helper\Path::join($this->target, $file->getTarget())))
                  throw new LocalExporterException("could not copy file \"{$file->getTarget()}\"");
      }
code_tokens: public function export ( $ product ) { $ files = $ product -> generateFiles ( ) ; mkdir ( $ this -> target , 0777 , true ) ; foreach ( $ files as $ file ) if ( ! $ file -> getContent ( ) -> copy ( fphp \ Helper \ Path :: join ( $ this -> target , $ file -> getTarget ( ) ) ) ) throw new LocalExporterException ( "could not copy file \"{$file->getTarget()}\"" ) ; }
docstring: Exports a product in the local filesystem.
  Every generated file is copied to the filesystem at its target path.
  @param \FeaturePhp\ProductLine\Product $product
docstring_tokens: Exports a product in the local filesystem . Every generated file is copied to the filesystem at its target path .