Properties

$context

$context : resource

Type

resource

$stream

$stream : \GuzzleHttp\Stream\StreamInterface

Type

\GuzzleHttp\Stream\StreamInterface

$mode

$mode : string

Type

string — r, r+, or w

$deferred

$deferred : \React\Promise\Deferred

Type

\React\Promise\Deferred

$iterator

$iterator : \ArrayIterator

Type

\ArrayIterator

Methods

register()

register(  $protocol) 

Registers the stream wrapper if needed

Parameters

$protocol

stream_open()

stream_open(string  $path, string  $mode, integer  $options, string  $opened_path) : boolean

Enter description here.

..

Parameters

string $path
string $mode
integer $options
string $opened_path

Returns

boolean

stream_stat()

stream_stat() : mixed

Enter description here.

..

Returns

mixed

stream_write()

stream_write(string  $data) : integer

Enter description here.

..

Parameters

string $data

Returns

integer

stream_read()

stream_read(integer  $count) : string

Enter description here.

..

Parameters

integer $count

Returns

string

stream_tell()

stream_tell() : boolean|integer

Enter description here.

..

Returns

boolean|integer

stream_eof()

stream_eof() : boolean

Enter description here.

..

Returns

boolean

stream_seek()

stream_seek(integer  $offset, integer  $whence = SEEK_SET) : boolean

Enter description here.

..

Parameters

integer $offset
integer $whence

= SEEK_SET

Returns

boolean

stream_close()

stream_close() 

Enter description here.

..

dir_opendir()

dir_opendir(string  $path, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $options

Returns

boolean

dir_readdir()

dir_readdir() : boolean

Enter description here.

..

Returns

boolean

dir_closedir()

dir_closedir() : boolean

Returns

boolean

dir_rewinddir()

dir_rewinddir() : boolean

Enter description here.

..

Returns

boolean

mkdir()

mkdir(string  $path, integer  $mode, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $mode
integer $options

Returns

boolean

rmdir()

rmdir(string  $path, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $options

Returns

boolean

rename()

rename(string  $oldName, string  $newName) : boolean

Enter description here.

..

Parameters

string $oldName
string $newName

Returns

boolean

url_stat()

url_stat(string  $path, integer  $flags) : array

Enter description here.

..

Parameters

string $path
integer $flags

Returns

array

isSeekable()

isSeekable(String  $url) : boolean

Describe whether the current wrapper can rewind a stream or not.

Parameters

String $url

Url of the resource

Returns

boolean

isRemote()

isRemote() : boolean

Describe whether the current wrapper operates on a remote server or not.

Returns

boolean

getRealFSReference()

getRealFSReference(string  $path, boolean  $persistent = false) : string

Get a "usable" reference to a file : the real file or a tmp copy.

Parameters

string $path
boolean $persistent

Returns

string

copyFileInStream()

copyFileInStream(string  $path, resource  $stream) 

Read a file (by chunks) and copy the data directly inside the given stream.

Parameters

string $path
resource $stream

copyStreamInStream()

copyStreamInStream(  $from,   $to) 

Parameters

$from
$to

changeMode()

changeMode(string  $path, \Pydio\Access\Core\Stream\number  $chmodValue) 

Chmod implementation for this type of access.

Parameters

string $path
\Pydio\Access\Core\Stream\number $chmodValue

createStream()

createStream(  $path, string  $mode = "r+") : \GuzzleHttp\Stream\Stream|\Pydio\Access\Core\Stream\AuthStream|\Pydio\Access\Core\Stream\MetadataCachingStream|\Pydio\Access\Core\Stream\OAuthStream|\Pydio\Access\Core\Stream\Stream|\Pydio\Access\Core\Stream\WriteBufferStream

Parameters

$path
string $mode

Throws

\Exception

Returns

\GuzzleHttp\Stream\Stream|\Pydio\Access\Core\Stream\AuthStream|\Pydio\Access\Core\Stream\MetadataCachingStream|\Pydio\Access\Core\Stream\OAuthStream|\Pydio\Access\Core\Stream\Stream|\Pydio\Access\Core\Stream\WriteBufferStream

getResolvedOptionsForNode()

getResolvedOptionsForNode(\Pydio\Access\Core\Model\AJXP_Node  $node) : array

Parameters

\Pydio\Access\Core\Model\AJXP_Node $node

Returns

array

stream_flush()

stream_flush() : boolean

Enter description here.

..

Returns

boolean

unlink()

unlink(string  $path) : boolean

Enter description here.

..

Parameters

string $path

Returns

boolean