Skip to content

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.

MemberSignature
listlist(string $folder = ""): Core\FileTransfer\Listing
walkwalk(string $folder = ""): Core\FileTransfer\Walk
existsexists(string $path): bool
metadatametadata(string $path): Core\FileTransfer\Entry
readBytesreadBytes(string $path): tainted bytes
readStreamreadStream(string $path, uint $offset = 0): Core\FileTransfer\Chunks
writewrite(string $path, Core\Bytes::Source|Core\Bytes::Chunks $content, bool $atomic = true): uint
appendappend(string $path, Core\Bytes::Source|Core\Bytes::Chunks $content): uint
movemove(string $from, string $to): void
removeremove(string $path): void
makeDirectorymakeDirectory(string $path): void
removeDirectoryremoveDirectory(string $path): void
setPermissionssetPermissions(string $path, uint $mode): void
setModifiedAtsetModifiedAt(string $path, Core\Time\Instant $at): void
closeclose(): void