Plentymarkets interface documentation
Services
Connectors
SFTPConnector
SFTP Connector
Namespace
Plenty\Modules\Plentychannel\Services\Connectors
Methods
public login():bool
Open the connection and log in
public createDirectory($folder, $mode = 511):bool
Creates directory
Name |
Type |
Description |
|
||
|
public uploadContent($filename, $content):bool
Uploads content into file
Name |
Type |
Description |
|
||
|
public getContent($filename):void
Gets content of file
Name |
Type |
Description |
|
public setListOrder($args):void
Sets list order
Name |
Type |
Description |
|
public nlist($folder, $recursive = false):void
N-list
Name |
Type |
Description |
|
||
|
public rawlist($folder, $recursive = false):void
Raw-List
Name |
Type |
Description |
|
||
|
public deleteFile($filename):bool
Delete file
Name |
Type |
Description |
|
public deleteFolder($folder):bool
Delete entire folder. Use with caution!
Name |
Type |
Description |
|
public getAllErrors():array
Get all SFTP errors
public getLastError():string
Get last SFTP error
public __construct($host, $username, $password, $port, $logPrefix = "Connector"):void
Initializes the connector
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
Thank you for your feedback!