63 return $this->directoryAccess->hasDir(
$path);
72 return $this->directoryAccess->listContents(
$path, $recursive);
81 $this->directoryAccess->createDir(
$path, $visibility);
99 $this->directoryAccess->deleteDir(
$path);
108 return $this->fileAccess->read(
$path);
117 return $this->fileAccess->has(
$path);
126 return $this->fileAccess->getMimeType(
$path);
135 return $this->fileAccess->getTimestamp(
$path);
144 return $this->fileAccess->getSize(
$path, $fileSizeUnit);
153 return $this->fileAccess->setVisibility(
$path, $visibility);
162 return $this->fileAccess->getVisibility(
$path);
171 return $this->fileStreamAccess->readStream(
$path);
180 $this->fileStreamAccess->writeStream(
$path, $stream);
189 $this->fileStreamAccess->putStream(
$path, $stream);
198 $this->fileStreamAccess->updateStream(
$path, $stream);
207 $this->fileAccess->write(
$path, $content);
216 $this->fileAccess->update(
$path, $newContent);
225 $this->fileAccess->put(
$path, $content);
234 $this->fileAccess->delete(
$path);
243 return $this->fileAccess->readAndDelete(
$path);
252 $this->fileAccess->rename(
$path, $newPath);
261 $this->fileAccess->copy(
$path, $copyPath);
putStream($path, FileStream $stream)
copyDir($source, $destination)
writeStream($path, FileStream $stream)
createDir($path, $visibility=Visibility::PUBLIC_ACCESS)
setVisibility($path, $visibility)
$stream
PHP stream implementation.
Interface DirectoryAccess.
listContents($path='', $recursive=false)
updateStream($path, FileStream $stream)
getSize($path, $fileSizeUnit)
__construct(FileStreamAccess $fileStreamAccess, FileAccess $fileAccess, DirectoryAccess $directoryAccess)
FilesystemFacade constructor.
update($path, $newContent)
const PUBLIC_ACCESS
Public file visibility.
Interface FileStreamAccess.
Class FlySystemFileAccessTest.