2declare(strict_types=1);
42 public function hasDir(
string $path) : bool
44 return $this->filesystem->hasDir($path);
50 public function listContents(
string $path =
'',
bool $recursive =
false) : array
52 return $this->filesystem->listContents($path, $recursive);
82 public function read(
string $path) : string
84 return $this->filesystem->read($path);
90 public function has(
string $path) : bool
92 return $this->filesystem->has($path);
100 return $this->filesystem->getMimeType($path);
108 return $this->filesystem->getTimestamp($path);
116 return $this->filesystem->
getSize(
135 return $this->filesystem->getVisibility($path);
143 return $this->filesystem->readStream($path);
151 return $this->filesystem->finder();
181 public function write(
string $path,
string $content)
189 public function update(
string $path,
string $newContent)
197 public function put(
string $path,
string $content)
205 public function delete(
string $path)
221 public function rename(
string $path,
string $newPath)
229 public function copy(
string $path,
string $copyPath)
An exception for terminatinating execution or to throw for unit testing.
getSize()
The calculated data size.
getTimestamp(string $path)
@inheritDoc
read(string $path)
@inheritDoc
__construct(Filesystem $filesystem)
ReadOnlyDecorator constructor.
getSize(string $path, int $fileSizeUnit)
@inheritDoc
getVisibility(string $path)
@inheritDoc
write(string $path, string $content)
@inheritDoc
createDir(string $path, string $visibility=Visibility::PUBLIC_ACCESS)
@inheritDoc
put(string $path, string $content)
@inheritDoc
has(string $path)
@inheritDoc
readAndDelete(string $path)
@inheritDoc
copy(string $path, string $copyPath)
@inheritDoc
copyDir(string $source, string $destination)
@inheritDoc
deleteDir(string $path)
@inheritDoc
readStream(string $path)
@inheritDoc
getMimeType(string $path)
@inheritDoc
putStream(string $path, FileStream $stream)
@inheritDoc
update(string $path, string $newContent)
@inheritDoc
listContents(string $path='', bool $recursive=false)
@inheritDoc
updateStream(string $path, FileStream $stream)
@inheritDoc
hasDir(string $path)
@inheritDoc
writeStream(string $path, FileStream $stream)
@inheritDoc
rename(string $path, string $newPath)
@inheritDoc
setVisibility(string $path, string $visibility)
@inheritDoc
Class IOException Indicates general problems with the input or output operations.
Interface Filesystem The filesystem interface provides the public interface for the Filesystem servic...
Interface FileStream The base interface for all filesystem streams.
Interface Visibility This interface provides the available options for the filesystem right managemen...
const PUBLIC_ACCESS
Public file visibility.
Class FlySystemFileAccessTest \Provider\FlySystem @runTestsInSeparateProcesses @preserveGlobalState d...