com\setasign\SetaSite\FileSystem
FilesystemManager
File: /SetaSite/src/FileSystem/FilesystemManager.php
Class hierarchy
Implements
Summary
Constants
FILETYPE_DIRECTORY
FILETYPE_FILE
FILETYPE_FILESYSTEM
Properties
Methods
__construct()
public FilesystemManager::__construct ()
Parameters
- $filesystemFactory : FilesystemFactoryInterface
- $config : array|\Traversable
Exceptions
Throws \com\setasign\SetaSite\Exception If there is an error while building the filesystem.
createDirectory()
Parameters
- $path : ?string
- $directoryName : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
createFile()
public FilesystemManager::createFile (
?string $path,
\com\setasign\SetaFramework\FileSystem\File $file
): void\com\setasign\SetaFramework\FileSystem\File $file
Parameters
- $path : ?string
- $file : \com\setasign\SetaFramework\FileSystem\File
Exceptions
Throws FilesystemException
Throws InvalidPathException
delete()
getAlternativeExternalPath()
getFile()
getFiles()
public FilesystemManager::getFiles (
?string $path = null,
?array $allowedExtensions = null
): array?array $allowedExtensions = null
Parameters
- $path : ?string
The internal path to the directory. Null is the root path.
- $allowedExtensions : ?array
Exceptions
Throws InvalidPathException
rename()
Parameters
- $path : string
- $newPath : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
