Core\FileTransfer\Connection
An open connection that Core\FileTransfer::open returns. Every path is relative to the block's root and uses / between folders.
Returned by
You get a Core\FileTransfer\Connection from these methods:
Members
15 members.
| Member | Signature |
|---|---|
list | list(string $folder = ""): Core\FileTransfer\Listing |
walk | walk(string $folder = ""): Core\FileTransfer\Walk |
exists | exists(string $path): bool |
metadata | metadata(string $path): Core\FileTransfer\Entry |
readBytes | readBytes(string $path): tainted bytes |
readStream | readStream(string $path, uint $offset = 0): Core\FileTransfer\Chunks |
write | write(string $path, Core\Bytes::Source|Core\Bytes::Chunks $content, bool $atomic = true): uint |
append | append(string $path, Core\Bytes::Source|Core\Bytes::Chunks $content): uint |
move | move(string $from, string $to): void |
remove | remove(string $path): void |
makeDirectory | makeDirectory(string $path): void |
removeDirectory | removeDirectory(string $path): void |
setPermissions | setPermissions(string $path, uint $mode): void |
setModifiedAt | setModifiedAt(string $path, Core\Time\Instant $at): void |
close | close(): void |
