Creates a new file info structure.
Clears the status information from info.
First clears all of the GFileAttribute[gio-GFileAttribute] of dest_info, and then copies all of the file attributes from src_info to dest_info.
Duplicates a file info structure.
Gets the access time of the current info and returns it as a #GDateTime.
Gets the value of an attribute, formatted as a string. This escapes things as needed to make the string valid UTF-8.
Gets the value of a boolean attribute. If the attribute does not contain a boolean value, false will be returned.
Gets the value of a byte string attribute. If the attribute does not contain a byte string, null will be returned.
Gets the attribute type, value and status for an attribute key.
Gets the value of a byte string attribute as a file path.
Gets a signed 32-bit integer contained within the attribute. If the attribute does not contain a signed 32-bit integer, or is invalid, 0 will be returned.
Gets a signed 64-bit integer contained within the attribute. If the attribute does not contain a signed 64-bit integer, or is invalid, 0 will be returned.
Gets the value of a #GObject attribute. If the attribute does not contain a #GObject, null will be returned.
Gets the attribute status for an attribute key.
Gets the value of a string attribute. If the attribute does not contain a string, null will be returned.
Gets the value of a stringv attribute. If the attribute does not contain a stringv, null will be returned.
Gets the attribute type for an attribute key.
Gets an unsigned 32-bit integer contained within the attribute. If the attribute does not contain an unsigned 32-bit integer, or is invalid, 0 will be returned.
Gets a unsigned 64-bit integer contained within the attribute. If the attribute does not contain an unsigned 64-bit integer, or is invalid, 0 will be returned.
Gets the file's content type.
Gets the creation time of the current info and returns it as a #GDateTime.
Returns the #GDateTime representing the deletion date of the file, as available in G_FILE_ATTRIBUTE_TRASH_DELETION_DATE. If the G_FILE_ATTRIBUTE_TRASH_DELETION_DATE attribute is unset, null is returned.
Gets a display name for a file. This is guaranteed to always be set.
Gets the edit name for a file.
Gets the entity tag for a given #GFileInfo. See G_FILE_ATTRIBUTE_ETAG_VALUE.
Gets a file's type (whether it is a regular file, symlink, etc). This is different from the file's content type, see gio.file_info.FileInfo.getContentType.
Gets the icon for a file.
Checks if a file is a backup file.
Checks if a file is hidden.
Checks if a file is a symlink.
Gets the modification time of the current info and returns it as a #GDateTime.
Gets the modification time of the current info and sets it in result.
Gets the name for a file. This is guaranteed to always be set.
Gets the file's size (in bytes). The size is retrieved through the value of the G_FILE_ATTRIBUTE_STANDARD_SIZE attribute and is converted from #guint64 to #goffset before returning the result.
Gets the value of the sort_order attribute from the #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
Gets the symbolic icon for a file.
Gets the symlink target for a given #GFileInfo.
Checks if a file info structure has an attribute named attribute.
Checks if a file info structure has an attribute in the specified name_space.
Lists the file info structure's attributes.
Removes all cases of attribute from info if it exists.
Sets the G_FILE_ATTRIBUTE_TIME_ACCESS and G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attributes in the file info to the given date/time value.
Sets the attribute to contain the given value, if possible. To unset the attribute, use gio.types.FileAttributeType.Invalid for type.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets mask on info to match specific attribute types.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute status for an attribute key. This is only needed by external code that implement gio.file.File.setAttributesFromInfo or similar functions.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the attribute to contain the given attr_value, if possible.
Sets the content type attribute for a given #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
Sets the G_FILE_ATTRIBUTE_TIME_CREATED and G_FILE_ATTRIBUTE_TIME_CREATED_USEC attributes in the file info to the given date/time value.
Sets the display name for the current #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
Sets the edit name for the current file. See G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
Sets the file type in a #GFileInfo to type. See G_FILE_ATTRIBUTE_STANDARD_TYPE.
Sets the icon for a given #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_ICON.
Sets the "is_hidden" attribute in a #GFileInfo according to is_hidden. See G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
Sets the "is_symlink" attribute in a #GFileInfo according to is_symlink. See G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
Sets the G_FILE_ATTRIBUTE_TIME_MODIFIED and G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the given date/time value.
Sets the G_FILE_ATTRIBUTE_TIME_MODIFIED and G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the given time value.
Sets the name attribute for the current #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_NAME.
Sets the G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info to the given size.
Sets the sort order attribute in the file info structure. See G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
Sets the symbolic icon for a given #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON.
Sets the G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info to the given symlink target.
Unsets a mask set by gio.file_info.FileInfo.setAttributeMask, if one is set.
Set the GObject of a D ObjectG wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectG.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectG.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectG.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectG.ref_ and gobject.object.ObjectG.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
Stores information about a file system object referenced by a gio.file.File.
Functionality for manipulating basic metadata for files. gio.file_info.FileInfo implements methods for getting information that all files should contain, and allows for manipulation of extended attributes.
See file-attributes.html for more information on how GIO handles file attributes.
To obtain a gio.file_info.FileInfo for a gio.file.File, use gio.file.File.queryInfo (or its async variant). To obtain a gio.file_info.FileInfo for a file input or output stream, use gio.file_input_stream.FileInputStream.queryInfo or gio.file_output_stream.FileOutputStream.queryInfo (or their async variants).
To change the actual attributes of a file, you should then set the attribute in the gio.file_info.FileInfo and call gio.file.File.setAttributesFromInfo or gio.file.File.setAttributesAsync on a gio.file.File.
However, not all attributes can be changed in the file. For instance, the actual size of a file cannot be changed via gio.file_info.FileInfo.setSize. You may call gio.file.File.querySettableAttributes and gio.file.File.queryWritableNamespaces to discover the settable attributes of a particular file at runtime.
The direct accessors, such as gio.file_info.FileInfo.getName, are slightly more optimized than the generic attribute accessors, such as gio.file_info.FileInfo.getAttributeByteString.This optimization will matter only if calling the API in a tight loop.
It is an error to call these accessors without specifying their required file attributes when creating the gio.file_info.FileInfo. Use gio.file_info.FileInfo.hasAttribute or gio.file_info.FileInfo.listAttributes to check what attributes are specified for a gio.file_info.FileInfo.
gio.file_attribute_matcher.FileAttributeMatcher allows for searching through a gio.file_info.FileInfo for attributes.