Nextcloud PHP API (stable19)

ISimpleFile

Interface ISimpleFile

Tags
since
11.0.0

Table of Contents

delete()  : mixed
Delete the file
getContent()  : string
Get the content
getETag()  : string
Get the ETag
getMimeType()  : string
Get the MimeType
getMTime()  : int
Get the last modification time
getName()  : string
Get the name
getSize()  : int
Get the size in bytes
putContent()  : mixed
Overwrite the file
read()  : resource
Open the file as stream for reading, resulting resource can be operated as stream like the result from php's own fopen
write()  : resource
Open the file as stream for writing, resulting resource can be operated as stream like the result from php's own fopen

Methods

getETag()

Get the ETag

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

getMimeType()

Get the MimeType

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

getMTime()

Get the last modification time

public getMTime() : int
Tags
since
11.0.0
Return values
int

getName()

Get the name

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

getSize()

Get the size in bytes

public getSize() : int
Tags
since
11.0.0
Return values
int

read()

Open the file as stream for reading, resulting resource can be operated as stream like the result from php's own fopen

public read() : resource
Tags
throws
NotPermittedException
since
14.0.0
Return values
resource

write()

Open the file as stream for writing, resulting resource can be operated as stream like the result from php's own fopen

public write() : resource
Tags
throws
NotPermittedException
since
14.0.0
Return values
resource

Search results