src/Gaufrette/Core/File/File.php
public function duplicate($name)
    {
        $clone = new self($name);
        $clone->setContent($this->content);
        $clone->setChecksum($this->checksum);
        $clone->setMetadata($this->metadata);
        $clone->setMimeType($this->mimetype);
        $clone->setSize($this->size);

        if (null !== $this->lastAccess) {
            $clone->setLastAccess($this->lastAccess);
        }

        if (null !== $this->lastModification) {
            $clone->setLastModification($this->lastModification);
        }

        return $clone;
    }
public function duplicate($name)
    {
        $clone = new self($name);
        $clone->setContent($this->content);
        $clone->setChecksum($this->checksum);
        $clone->setMetadata($this->metadata);
        $clone->setMimeType($this->mimetype);
        $clone->setSize($this->size);

        if (null !== $this->lastAccess) {
            $clone->setLastAccess($this->lastAccess);
        }

        if (null !== $this->lastModification) {
            $clone->setLastModification($this->lastModification);
        }

        return $clone;
    }
{@inheritdoc}