File
File class.
- Full name:
\Sabre\DAV\FS\File
- Parent class:
\Sabre\DAV\FS\Node
- This class implements:
\Sabre\DAV\IFile
Methods
put
Updates the data.
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
resource |
get
Returns the data.
delete
Delete the current file.
getSize
Returns the size of the node, in bytes.
getETag
Returns the ETag for a file.
An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change. The ETag is an arbitrary string, but MUST be surrounded by double-quotes.
Return null if the ETag can not effectively be determined
getContentType
Returns the mime-type for a file.
If null is returned, we'll assume application/octet-stream
Inherited methods
__construct
Sets up the node, expects a full path name.
If $overrideName is set, this node shows up in the tree under a different name. In this case setName() will be disabled.
Parameters:
Parameter | Type | Description |
---|---|---|
$path |
string | |
$overrideName |
string |
getName
Returns the name of the node.
setName
Renames the node.
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | The new name |
getLastModified
Returns the last modification time, as a unix timestamp.
Automatically generated on 2025-03-18