FileInfo


Object Hierarchy:

Object hierarchy for FileInfo

Description:

public class FileInfo : Object

Functionality for manipulating basic metadata for files.

FileInfo 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 FileInfo for a File, use query_info (or its async variant). To obtain a FileInfo for a file input or output stream, use query_info or query_info (or their async variants).

To change the actual attributes of a file, you should then set the attribute in the FileInfo and call set_attributes_from_info or 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 set_size. You may call query_settable_attributes and query_writable_namespaces to discover the settable attributes of a particular file at runtime.

FileAttributeMatcher allows for searching through a FileInfo for attributes.


Namespace: GLib
Package: gio-2.0

Content:

Creation methods:

Methods:

Inherited Members: