/** * {@inheritdoc} */ public function size($path) { return $this->exists($path) ? parent::size($path) : null; }
/** * @param \Gaufrette\Filesystem $filesystem */ function it_gets_zero_size_when_file_not_found($filesystem) { $filesystem->size('filename')->willThrow(new \Gaufrette\Exception\FileNotFound('filename')); $this->getSize()->shouldReturn(0); }
/** * Get file size. * * @param $name * @return int */ public function size($name) { return $this->filesystem->size($name); }