SimpleFile¶
-
class
OC\Files\SimpleFS\
SimpleFile
¶ Source: lib/private/Files/SimpleFS/SimpleFile.php#33 Implements: OCP\Files\SimpleFS\ISimpleFile
Properties¶
Methods¶
-
public
OC\Files\SimpleFS\SimpleFile::
__construct
($file)¶ - File constructor.
Source: Parameters: - $file (
OCP\Files\File
)
- $file (
-
public
OC\Files\SimpleFS\SimpleFile::
getName
()¶ - Get the name
Source: lib/private/Files/SimpleFS/SimpleFile.php#52 Returns: string
-
public
OC\Files\SimpleFS\SimpleFile::
getSize
()¶ - Get the size in bytes
Source: lib/private/Files/SimpleFS/SimpleFile.php#61 Returns: int
-
public
OC\Files\SimpleFS\SimpleFile::
getETag
()¶ - Get the ETag
Source: lib/private/Files/SimpleFS/SimpleFile.php#70 Returns: string
-
public
OC\Files\SimpleFS\SimpleFile::
getMTime
()¶ - Get the last modification time
Source: lib/private/Files/SimpleFS/SimpleFile.php#79 Returns: int
-
public
OC\Files\SimpleFS\SimpleFile::
getContent
()¶ - Get the content
Source: lib/private/Files/SimpleFS/SimpleFile.php#90 Throws: \OCP\Files\NotPermittedException
Throws: \OCP\Files\NotFoundException
Throws: \OCP\Files\NotPermittedException
Throws: \OCP\Files\NotFoundException
Returns: string
-
public
OC\Files\SimpleFS\SimpleFile::
putContent
($data)¶ - Overwrite the file
Source: Parameters: - $data (string | resource)
Throws: Throws: Throws: Throws:
-
public
OC\Files\SimpleFS\SimpleFile::
delete
()¶ - Delete the file
Source: lib/private/Files/SimpleFS/SimpleFile.php#149 Throws: \OCP\Files\NotPermittedException
-
public
OC\Files\SimpleFS\SimpleFile::
getMimeType
()¶ - Get the MimeType
Source: lib/private/Files/SimpleFS/SimpleFile.php#158 Returns: string
-
public
OC\Files\SimpleFS\SimpleFile::
read
()¶ - Open the file as stream for reading, resulting resource can be operated as stream like the result from php’s own fopen
Source: lib/private/Files/SimpleFS/SimpleFile.php#169 Returns: resource Throws: \OCP\Files\NotPermittedException
Since: 14.0.0
-
public
OC\Files\SimpleFS\SimpleFile::
write
()¶ - Open the file as stream for writing, resulting resource can be operated as stream like the result from php’s own fopen
Source: lib/private/Files/SimpleFS/SimpleFile.php#180 Returns: resource Throws: \OCP\Files\NotPermittedException
Since: 14.0.0
-
public
OC\Files\SimpleFS\SimpleFile::
getId
()¶ Source: lib/private/Files/SimpleFS/SimpleFile.php#184