Represents a file on the file-system which can be read from, or
written to asynchronously. Methods also exist to get a read stream or a
write stream on the file. This allows the data to be pumped to and from
other streams, e.g. an HttpClientRequest instance, using the Pump
class
|
|
|
close(self,
handler)
Close the file, asynchronously. |
source code
|
|
|
write(self,
buffer,
position,
handler)
Write a Buffer to the file, asynchronously. |
source code
|
|
|
read(self,
buffer,
offset,
position,
length,
handler)
Reads some data from a file into a buffer, asynchronously. |
source code
|
|
|
|
|
|
|
flush(self)
Flush any writes made to this file to underlying persistent storage,
asynchronously. |
source code
|
|