ISimpleFolder
Interface ISimpleFolder
Tags
Table of Contents
- delete() : mixed
- Remove the folder and all the files in it
- fileExists() : bool
- Check if a file with $name exists
- getDirectoryListing() : \OCP\Files\SimpleFS\ISimpleFile[]
- Get all the files in a folder
- getFile() : ISimpleFile
- Get the file named $name from the folder
- getName() : string
- Get the folder name
- newFile() : ISimpleFile
- Creates a new file with $name in the folder
Methods
delete()
Remove the folder and all the files in it
public
delete() : mixed
Tags
Return values
mixed —fileExists()
Check if a file with $name exists
public
fileExists(string $name) : bool
Parameters
- $name : string
Tags
Return values
bool —getDirectoryListing()
Get all the files in a folder
public
getDirectoryListing() : \OCP\Files\SimpleFS\ISimpleFile[]
Tags
Return values
\OCP\Files\SimpleFS\ISimpleFile[] —getFile()
Get the file named $name from the folder
public
getFile(string $name) : ISimpleFile
Parameters
- $name : string
Tags
Return values
ISimpleFile —getName()
Get the folder name
public
getName() : string
Tags
Return values
string —newFile()
Creates a new file with $name in the folder
public
newFile(string $name[, string|resource|null $content = null ]) : ISimpleFile
Parameters
- $name : string
- $content : string|resource|null = null
-
@since 19.0.0