com\setasign\SetaSite\FileSystem
FilesystemManagerInterface
File: /SetaSite/src/FileSystem/FilesystemManagerInterface.php
Implemented in
Implements
Summary
Constants
FILETYPE_DIRECTORY
FILETYPE_FILE
FILETYPE_FILESYSTEM
Methods
createDirectory()
Parameters
- $path : ?string
- $directoryName : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
createFile()
abstract public FilesystemInterface::createFile (
?string $path,
\com\setasign\SetaFramework\FileSystem\File $file
): void\com\setasign\SetaFramework\FileSystem\File $file
Creates a file.
The full filename will be generated by $path + '/' + $file->getFileName().
If the file already exists, it will be overwritten.
Parameters
- $path : ?string
- $file : \com\setasign\SetaFramework\FileSystem\File
Exceptions
Throws FilesystemException
Throws InvalidPathException
delete()
Deletes a file or directory.
Parameters
- $path : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
getAlternativeExternalPath()
getFile()
abstract public FilesystemInterface::getFile (
string $path
): \com\setasign\SetaFramework\FileSystem\FileParameters
- $path : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
getFiles()
abstract public FilesystemInterface::getFiles (
?string $path = null,
?array $allowedExtensions = null
): array?array $allowedExtensions = null
Returns all files in this directory
Parameters
- $path : ?string
The internal path to the directory. Null is the root path.
- $allowedExtensions : ?array
Exceptions
Throws InvalidPathException
isFileSystem()
Checks whether the path is a filesystem (a filesystem also counts as directory).
Parameters
- $path : string
rename()
Renames a file or directory.
Parameters
- $path : string
- $newPath : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
