Class SFTP
SFTP handler
Namespace: Alo
Author: Arturas Molcanovas <a.molcanovas@gmail.com>
Located at sys/class/alo/sftp.php
Author: Arturas Molcanovas <a.molcanovas@gmail.com>
Located at sys/class/alo/sftp.php
Methods summary
public
|
|
public static
|
|
public
boolean|integer
|
#
retryCount( integer $int = -1 )
If no parameter is passed gets the maximum amount of retry attempts for failed operations, otherwise sets it. |
public
boolean
|
|
public
|
|
public
array
|
#
scandir( integer $sorting_order =
Scans a directory for files and subdirectories |
public
|
|
public
|
|
protected
|
|
protected
|
|
protected static
boolean
|
|
public
|
|
public
string
|
|
protected
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Magic methods summary
Constants summary
integer |
SORT_ASC
|
SCANDIR_SORT_ASCENDING |
#
Defines the sort direction as ascending |
integer |
SORT_DESC
|
SCANDIR_SORT_DESCENDING |
#
Defines the sort direction as descending |
integer |
P_RETRY_COUNT
|
101 |
#
Defines a parameter as "retry count" |
integer |
P_RETRY_TIME
|
102 |
#
Defines a parameter as "retry wait time" |
Properties summary
protected
string
|
$url |
#
The endpoint URL |
protected
string
|
$user |
#
The SFTP username |
protected
string
|
$pubkey |
#
Path to the public authentication key |
protected
string
|
$privkey |
#
Path to the private authentication key |
protected
string
|
$pw |
#
Private authentication key password |
protected
string
|
$dir |
#
Directory in use |
protected
resource
|
$connection |
#
The SSH2 connection |
protected
resource
|
$sftp |
#
The SFTP subsystem |
protected
string
|
$local_dir |
#
The local directory set |
protected
integer
|
$retry_count_max |
#
Maximum amount of retries for an operation |
protected
integer
|
$retry_time |
#
Time in seconds between retries |