Zymba Documentation
FTP.Client
object @FTP.Client(@Base) {
construct(string $server, string $username, string $password, int $timeout) {}
append(string $path, string $target): $this {}
close() {}
countDirectories(string $path): int {}
countFiles(string $path): int {}
createDirectory(string $path): $this {}
delete(string $path): $this {}
disablePassiveMode(): $this {}
download(string $path, string $target): $this {}
echo(string $path): $this {}
enablePassiveMode(): $this {}
execute(string $command): object {}
exists(string $path): bool {}
exit() {}
getLastModified(string $path): int {}
getSize(string $path): int {}
getWorkingDirectory(): string {}
isConnected(): bool {}
isDirectory(string $path): bool {}
listDirectories(string $path): object {}
listFiles(string $path): object {}
move(string $path, string $target): $this {}
read(string $path, ?int $length, int $position): string {}
readCSV(string $path, string $delimiter): object {}
readJSON(string $path): mixed {}
setPermissions(string $path, int $mode): $this {}
setTimeout(int $timeout): $this {}
setWorkingDirectory(string $path): $this {}
upload(string $path, string $target, int $position): $this {}
write(string $path, string $string, ?int $length, int $position): int {}
}
FTP client prototype.