FtpOperations
Table of Contents
-
$ftpDriver
: FilesystemAdapter
-
__construct()
: mixed
-
download()
: bool
-
list()
: array<string|int, mixed>
-
sortByLastModified()
: DirectoryListing
$ftpDriver
protected
FilesystemAdapter
$ftpDriver
__construct()
public
__construct(FilesystemAdapter $ftpDisk) : mixed
Parameters
-
$ftpDisk
: FilesystemAdapter
-
Return values
mixed
—
download()
public
download(string $source, string $destination[, FilesystemAdapter|null $desintationDriver = null ]) : bool
Parameters
-
$source
: string
-
-
$destination
: string
-
-
$desintationDriver
: FilesystemAdapter|null
= null
-
-
throws
-
FileNotFoundException
Return values
bool
—
list()
public
list([string $dir = '/' ][, bool $sortAsc = false ]) : array<string|int, mixed>
Parameters
-
$dir
: string
= '/'
-
-
$sortAsc
: bool
= false
-
-
throws
-
FilesystemException
Return values
array<string|int, mixed>
—
sortByLastModified()
public
sortByLastModified(DirectoryListing $directoryListing[, bool $sortAsc = false ]) : DirectoryListing
Parameters
-
$directoryListing
: DirectoryListing
-
-
$sortAsc
: bool
= false
-
Return values
DirectoryListing
—