AutoUpdaterFtpManager

Class AutoUpdaterFtpManager

package

Default

Methods

AutoUpdaterFtpManager constructor.

__construct(\AutoUpdaterSettings $settings, \League\Flysystem\Filesystem $filesystem, \LogControl $logControl) 

Arguments

$filesystem

\League\Flysystem\Filesystem

$logControl

\LogControl

Copies a file.

copyFile(string $source, string $destination) : boolean

Arguments

$source

string

$destination

string

Response

boolean

Creates a new debug log.

createDebugLog(string $message, string|array $additionalData = '') 

Arguments

$message

string

$additionalData

string|array

Return true on success, otherwise false.

createDirectory(string $directory) : boolean

Arguments

$directory

string

Path of the new directory.

Response

boolean

Deletes a directory. Return true on success and false otherwise.

deleteDirectory(string $directory) : boolean

Arguments

$directory

string

Response

boolean

Copies a file.

deleteFile(string $file) : boolean

Arguments

$file

string

Response

boolean

Sets the file permissions and ownership correctly.

setCorrectChmodAndOwner(string $file, null|string $chmod = null, null|string $owner = null) : boolean

Arguments

$file

string

$chmod

null|string

$owner

null|string

Response

boolean

Properties

settings

settings : \AutoUpdaterSettings
var

Type(s)

\AutoUpdaterSettings

filesystem

filesystem : \AutoUpdaterFilesystem

logControl

logControl : \LogControl
var

Type(s)

\LogControl