2 declare(strict_types=1);
53 return $this->filesystem->hasDir($path);
62 return $this->filesystem->listContents(
$path, $recursive);
98 return $this->filesystem->read($path);
107 return $this->filesystem->has($path);
116 return $this->filesystem->getMimeType($path);
125 return $this->filesystem->getTimestamp($path);
134 return $this->filesystem->
getSize(
155 return $this->filesystem->getVisibility($path);
164 return $this->filesystem->readStream($path);
225 public function delete(
string $path)
readAndDelete(string $path)
getVisibility(string $path)
Exercise XML Parser which completes/updates a given file by an xml string.
rename(string $path, string $newPath)
createDir(string $path, string $visibility=Visibility::PUBLIC_ACCESS)
getSize(string $path, int $fileSizeUnit)
put(string $path, string $content)
putStream(string $path, FileStream $stream)
getTimestamp(string $path)
$stream
PHP stream implementation.
write(string $path, string $content)
writeStream(string $path, FileStream $stream)
copyDir(string $source, string $destination)
listContents(string $path='', bool $recursive=false)
getSize()
The calculated data size.
__construct(Filesystem $filesystem)
ReadOnlyDecorator constructor.
setVisibility(string $path, string $visibility)
const PUBLIC_ACCESS
Public file visibility.
update(string $path, string $newContent)
copy(string $path, string $copyPath)
Class FlySystemFileAccessTest.
getMimeType(string $path)
updateStream(string $path, FileStream $stream)