2 declare(strict_types=1);
52 public function hasDir(
string $path) : bool
54 return $this->filesystem->hasDir($path);
61 public function listContents(
string $path =
'',
bool $recursive =
false) : array
63 return $this->filesystem->listContents($path, $recursive);
97 public function read(
string $path) : string
99 return $this->filesystem->read($path);
106 public function has(
string $path) : bool
108 return $this->filesystem->has($path);
117 return $this->filesystem->getMimeType($path);
126 return $this->filesystem->getTimestamp($path);
135 return $this->filesystem->
getSize(
156 return $this->filesystem->getVisibility($path);
165 return $this->filesystem->readStream($path);
174 return $this->filesystem->finder();
207 public function write(
string $path,
string $content)
216 public function update(
string $path,
string $newContent)
225 public function put(
string $path,
string $content)
234 public function delete(
string $path)
252 public function rename(
string $path,
string $newPath)
261 public function copy(
string $path,
string $copyPath)
readAndDelete(string $path)
getVisibility(string $path)
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)
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)