Directory
- Full name:
\Zotlabs\Storage\Directory
- Parent class:
Node
- This class implements:
\Sabre\DAV\ICollection
,\Sabre\DAV\IQuota
,\Sabre\DAV\IMoveTarget
See Also:
- http://github.com/friendica/red -
Properties
red_path
folder_hash
data
ext_path
root_dir
auth
os_path
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$ext_path |
string | a full path |
$data |
mixed | |
$auth_plugin |
\Zotlabs\Storage\BasicAuth |
log
getChildren
Return Value:
\Sabre\DAV\INode[]
Throws:
getChild
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
Throws:
getName
setName
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | The new name of the directory. |
Throws:
createFile
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | Name of the file |
$data |
resource|string | Initial payload |
Return Value:
ETag
Throws:
createDirectory
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | the directory to create |
delete
childExists
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | The name to check if it exists. |
moveInto
Parameters:
Parameter | Type | Description |
---|---|---|
$targetName |
mixed | |
$sourcePath |
mixed | |
$sourceNode |
\Sabre\DAV\INode |
getDir
Throws:
getLastModified
Return Value:
last modification time in UNIX timestamp
CollectionData
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string | path to a directory |
$auth |
\Zotlabs\Storage\BasicAuth |
Throws:
ChannelList
Parameters:
Parameter | Type | Description |
---|---|---|
$auth |
\Zotlabs\Storage\BasicAuth |
Return Value:
Directory[]
FileData
public FileData(string $file, \Zotlabs\Storage\BasicAuth& $auth, bool $test = false): \Zotlabs\Storage\File|\Zotlabs\Storage\Directory|bool|null
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string | path to file or directory |
$auth |
\Zotlabs\Storage\BasicAuth | |
$test |
bool | (optional) enable test mode |
Throws:
getQuotaInfo
Automatically generated on 2025-03-19