/** * {@inheritdoc} */ public function getTimestamp($cache = true) { if (!$cache) { $this->timestamp = null; } if (!$this->timestamp) { $this->timestamp = $this->filesystem->getTimestamp($this->path); } return $this->timestamp; }
/** * {@inheritdoc} */ public function getTimestamp() { return $this->filesystem->getTimestamp($this->path); }
private function doCopy(FilesystemInterface $fsOrigin, FilesystemInterface $fsTarget, $origin, $target, $override) { if ($fsTarget->has($target) && ($override === false || $override === null && $fsOrigin->getTimestamp($origin) <= $fsTarget->getTimestamp($target))) { return; } $buffer = $fsOrigin->readStream($origin); $fsTarget->putStream($target, $buffer); $buffer->close(); }