Skip to content

Directory

See Also:

  • http://github.com/friendica/red -

Properties

red_path

private string $red_path

folder_hash

public $folder_hash

data

public $data

ext_path

private string $ext_path

root_dir

private $root_dir

auth

private $auth

os_path

public string $os_path

Methods

__construct

public __construct(string $ext_path, mixed $data, \Zotlabs\Storage\BasicAuth& $auth_plugin): mixed

Parameters:

Parameter Type Description
$ext_path string a full path
$data mixed
$auth_plugin \Zotlabs\Storage\BasicAuth

log

private log(): mixed

getChildren

public getChildren(): array

Return Value:

\Sabre\DAV\INode[]

Throws:


getChild

public getChild(string $name): mixed

Parameters:

Parameter Type Description
$name string

Throws:


getName

public getName(): string

setName

public setName(string $name): void

Parameters:

Parameter Type Description
$name string The new name of the directory.

Throws:


createFile

public createFile(string $name, resource|string $data = null): null|string

Parameters:

Parameter Type Description
$name string Name of the file
$data resource|string Initial payload

Return Value:

ETag

Throws:


createDirectory

public createDirectory(string $name): void

Parameters:

Parameter Type Description
$name string the directory to create

delete

public delete(): mixed

childExists

public childExists(string $name): bool

Parameters:

Parameter Type Description
$name string
The name to check if it exists.

moveInto

public moveInto(mixed $targetName, mixed $sourcePath, \Sabre\DAV\INode $sourceNode): mixed

Parameters:

Parameter Type Description
$targetName mixed
$sourcePath mixed
$sourceNode \Sabre\DAV\INode

getDir

public getDir(): void

Throws:


getLastModified

public getLastModified(): int

Return Value:

last modification time in UNIX timestamp


CollectionData

public CollectionData(string $file, \Zotlabs\Storage\BasicAuth& $auth): mixed

Parameters:

Parameter Type Description
$file string path to a directory
$auth \Zotlabs\Storage\BasicAuth

Throws:


ChannelList

public ChannelList(\Zotlabs\Storage\BasicAuth& $auth): array

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

public getQuotaInfo(): mixed


Automatically generated on 2025-03-19