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()}\"");
    }