com\setasign\SetaSite\FileSystem
Native Class Filesystem\Native
File: /SetaSite/src/FileSystem/Native.php
The native filesystem uses the native php file functions.
Class hierarchy
Implements
Summary
Constants
FILETYPE_DIRECTORY
FILETYPE_FILE
Properties
$directory
protected string Native::$directory
Methods
createDirectory()
Parameters
- $path : ?string
- $directoryName : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
createFile()
public Native::createFile (
?string $path,
\com\setasign\SetaFramework\FileSystem\File $file
): void\com\setasign\SetaFramework\FileSystem\File $file
Creates a file.
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()
getFiles()
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
rename()
Renames a file or directory.
Parameters
- $path : string
- $newPath : string
Exceptions
Throws InvalidPathException
Throws FilesystemException
