示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getTimestamp($cache = true)
 {
     if (!$cache) {
         $this->timestamp = null;
     }
     if (!$this->timestamp) {
         $this->timestamp = $this->filesystem->getTimestamp($this->path);
     }
     return $this->timestamp;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function getTimestamp()
 {
     return $this->filesystem->getTimestamp($this->path);
 }
示例#3
0
 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();
 }