SftpFile class

Constructors

SftpFile(SftpClient _client, Uint8List _handle)

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({int? length, int offset = 0, void onProgress(int bytesRead)?}) Stream<Uint8List>
Reads at most count bytes from the file starting at offset. If length is null, reads until end of file. Returns a Stream of chunks. onProgress is called with the total number of bytes already read. Use readBytes if you want a single Uint8List.
readBytes({int? length, int offset = 0}) Future<Uint8List>
Reads at most length bytes from the file starting at offset. If length is null, reads until end of the file. Use read if you want to stream large file in chunks.
setStat(SftpFileAttrs attrs) Future<void>
stat() Future<SftpFileAttrs>
statvfs() Future<SftpStatVfs>
Gets filesystem statistics that this file is on.
toString() String
A string representation of this object.
override
write(Stream<Uint8List> stream, {int offset = 0, void onProgress(int total)?}) SftpFileWriter
Writes stream to the file starting at offset.
writeBytes(Uint8List data, {int offset = 0}) Future<void>
Writes data to the file starting at offset.

Operators

operator ==(Object other) bool
The equality operator.
inherited