Plentymarkets interface documentation
Services
Connectors
SFTPConnector
SFTP Connector
Namespace
Plenty\Modules\Plentychannel\Services\Connectors
Methods
public login():boolOpen the connection and log in
public createDirectory($folder, $mode = 511):boolCreates directory
| Name | Type | Description | 
| 
 | ||
| 
 | 
public uploadContent($filename, $content):boolUploads content into file
| Name | Type | Description | 
| 
 | ||
| 
 | 
public getContent($filename):voidGets content of file
| Name | Type | Description | 
| 
 | 
public setListOrder($args):voidSets list order
| Name | Type | Description | 
| 
 | 
public nlist($folder, $recursive = false):voidN-list
| Name | Type | Description | 
| 
 | ||
| 
 | 
public rawlist($folder, $recursive = false):voidRaw-List
| Name | Type | Description | 
| 
 | ||
| 
 | 
public deleteFile($filename):boolDelete file
| Name | Type | Description | 
| 
 | 
public deleteFolder($folder):boolDelete entire folder. Use with caution!
| Name | Type | Description | 
| 
 | 
public getAllErrors():arrayGet all SFTP errors
public getLastError():stringGet last SFTP error
public __construct($host, $username, $password, $port, $logPrefix = "Connector"):voidInitializes the connector
| Name | Type | Description | 
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | 
            Thank you for your feedback!