Nextcloud PHP API (stable18)

ISimpleFolder

Interface ISimpleFolder

Tags
since
11.0.0

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

fileExists()

Check if a file with $name exists

public fileExists(string $name) : bool
Parameters
$name : string
Tags
since
11.0.0
Return values
bool

getDirectoryListing()

Get all the files in a folder

public getDirectoryListing() : \OCP\Files\SimpleFS\ISimpleFile[]
Tags
since
11.0.0
Return values
\OCP\Files\SimpleFS\ISimpleFile[]

getName()

Get the folder name

public getName() : string
Tags
since
11.0.0
Return values
string

Search results