gio.file_iostream
Module for [FileIOStream] class
Types 3
[gio.file_iostream.FileIOStream] provides I/O streams that both read and write to the same file handle.
[gio.file_iostream.FileIOStream] implements [gio.seekable.Seekable], which allows the I/O stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.
To find the position of a file I/O stream, use [gio.seekable.Seekable.tell].
To find out if a file I/O stream supports seeking, use [gio.seekable.Seekable.canSeek]. To position a file I/O stream, use [gio.seekable.Seekable.seek]. To find out if a file I/O stream supports truncating, use [gio.seekable.Seekable.canTruncate]. To truncate a file I/O stream, use [gio.seekable.Seekable.truncate].
The default implementation of all the [gio.file_iostream.FileIOStream] operations and the implementation of [gio.seekable.Seekable] just call into the same operations on the output stream.
FileIOStream self()Returns `this`, for use in `with` statements.FileIOStreamGidBuilder builder()Get builder for [gio.file_iostream.FileIOStream] Returns: New builder objectstring getEtag()Gets the entity tag for the file when it has been written. This must be called after the stream has been written and closed, as the etag can change while writing. Returns: the entity tag for the st...gio.file_info.FileInfo queryInfo(string attributes, gio.cancellable.Cancellable cancellable = null)Queries a file io stream for the given attributes. This function blocks while querying the stream. For the asynchronous version of this function, see [gio.file_iostream.FileIOStream.queryInfoAsync]...void queryInfoAsync(string attributes, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously queries the stream for a #GFileInfo. When completed, callback will be called with a #GAsyncResult which can be used to finish the operation with [gio.file_iostream.FileIOStream.query...gio.file_info.FileInfo queryInfoFinish(gio.async_result.AsyncResult result)Finalizes the asynchronous query started by [gio.file_iostream.FileIOStream.queryInfoAsync].Fluent builder for [gio.file_iostream.FileIOStream]