Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gio.FileInfo

Class Gio.FileInfo

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GFileInfo
Class : FileInfo
Extends: GObject.Object
Functionality for manipulating basic metadata for files. GFileInfo
implements methods for getting information that all files should
contain, and allows for manipulation of extended attributes.
See GFileAttribute for more
information on how GIO handles file attributes.
To obtain a GFileInfo for a GFile, use g_file_query_info() (or its
async variant). To obtain a GFileInfo for a file input or output
stream, use g_file_input_stream_query_info() or
g_file_output_stream_query_info() (or their async variants).
To change the actual attributes of a file, you should then set the
attribute in the GFileInfo and call g_file_set_attributes_from_info()
or g_file_set_attributes_async() on a GFile.
However, not all attributes can be changed in the file. For instance,
the actual size of a file cannot be changed via g_file_info_set_size().
You may call g_file_query_settable_attributes() and
g_file_query_writable_namespaces() to discover the settable attributes
of a particular file at runtime.
GFileAttributeMatcher allows for searching through a GFileInfo for
attributes.
Properties
None
Methods / Constructors
Method / Constructor Defined By
 
new Gio.FileInfo ()
Create a new Gio.FileInfo
Create a new Gio.FileInfo
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gio.File
Method
query_filesystem_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Similar to g_file_query_info(), but obtains information
about the filesystem the file is on, rather than the file itself.
Gio.File
Method
query_filesystem_info_finish (AsyncResult res) : Gio.FileInfo
Finishes an asynchronous filesystem info query.
Gio.File
Method
query_info (String attributes, FileQueryInfoFlags flags, Cancellable cancellable) : Gio.FileInfo
Gets the requested information about specified file.
Gio.File
Method
query_info_finish (AsyncResult res) : Gio.FileInfo
Finishes an asynchronous file info query.
Gio.File
Method
set_attributes_async (FileInfo info, FileQueryInfoFlags flags, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously sets the attributes of file with info.
Gio.File
Method
set_attributes_from_info (FileInfo info, FileQueryInfoFlags flags, Cancellable cancellable) : gboolean
Tries to set all attributes in the GFileInfo on the target values,
not stopping on the first error.
Gio.FileEnumerator
Method
next_file (Cancellable cancellable) : Gio.FileInfo
Returns information for the next file in the enumerated object.
Gio.FileIOStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file io stream for the given attributes.
Gio.FileIOStream
Method
query_info_finish (AsyncResult result) : Gio.FileInfo
Finalizes the asynchronous query started
by g_file_io_stream_query_info_async().
Gio.FileInputStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file input stream the given attributes.
Gio.FileInputStream
Method
query_info_finish (AsyncResult result) : Gio.FileInfo
Finishes an asynchronous info query operation.
Gio.FileOutputStream
Method
query_info (String attributes, Cancellable cancellable) : Gio.FileInfo
Queries a file output stream for the given attributes.
Gio.FileOutputStream
Method
query_info_finish (AsyncResult result) : Gio.FileInfo
Finalizes the asynchronous query started
by g_file_output_stream_query_info_async().
Gio.ZlibCompressor
Property
file_info : Gio.FileInfo
If set to a non-NULL GFileInfo object, and GZlibCompressor:format is
G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name
and modification time from the file info to the the GZIP header.
Gio.ZlibCompressor
Method
get_file_info () : Gio.FileInfo
Returns the GZlibCompressor:file-info property.
Gio.ZlibCompressor
Method
set_file_info (FileInfo file_info) : none
Sets file_info in compressor.
Gio.ZlibDecompressor
Property
file_info : Gio.FileInfo read only
A GFileInfo containing the information found in the GZIP header
of the data stream processed, or NULL if the header was not yet
fully processed, is not present at all, or the compressor's
GZlibDecompressor:format property is not G_ZLIB_COMPRESSOR_FORMAT_GZIP.
Gio.ZlibDecompressor
Method
get_file_info () : Gio.FileInfo
Retrieves the GFileInfo constructed from the GZIP header data
of compressed data processed by compressor, or NULL if decompressor's
GZlibDecompressor:format property is not G_ZLIB_COMPRESSOR_FORMAT_GZIP,
or the header data was not fully processed yet, or it not present in the
data stream at all.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:11 GMT+0800 (HKT)