package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/File_info/index.html
Module Wrappers.File_info
type t = [ `file_info | `object_ ] Gobject.objval new_ : unit -> tCreate a new FileInfo
val unset_attribute_mask : t -> unitUnsets a mask set by g_file_info_set_attribute_mask(), if one is set.
val set_symlink_target : t -> string -> unitSets the %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info to the given symlink target.
val set_symbolic_icon : t -> [ `icon ] Gobject.obj -> unitSets the symbolic icon for a given #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON.
Sets the sort order attribute in the file info structure. See %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
val set_size : t -> int64 -> unitSets the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info to the given size.
val set_name : t -> string -> unitSets the name attribute for the current #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_NAME.
val set_is_symlink : t -> bool -> unitSets the "is_symlink" attribute in a #GFileInfo according to @is_symlink. See %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
Sets the "is_hidden" attribute in a #GFileInfo according to @is_hidden. See %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
val set_icon : t -> [ `icon ] Gobject.obj -> unitSets the icon for a given #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_ICON.
val set_file_type : t -> Gio_enums.filetype -> unitSets the file type in a #GFileInfo to @type. See %G_FILE_ATTRIBUTE_STANDARD_TYPE.
val set_edit_name : t -> string -> unitSets the edit name for the current file. See %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
val set_display_name : t -> string -> unitSets the display name for the current #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
val set_content_type : t -> string -> unitSets the content type attribute for a given #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
Sets the @attribute to contain the given @attr_value, if possible.
Sets the @attribute to contain the given @attr_value, if possible.
val set_attribute_stringv : t -> string -> string array -> unitSets the @attribute to contain the given @attr_value, if possible.
Sinze: 2.22
val set_attribute_string : t -> string -> string -> unitSets the @attribute to contain the given @attr_value, if possible.
val set_attribute_status : t -> string -> Gio_enums.fileattributestatus -> boolSets the attribute status for an attribute key. This is only needed by external code that implement g_file_set_attributes_from_info() or similar functions.
The attribute must exist in @info for this to work. Otherwise %FALSE is returned and @info is unchanged.
val set_attribute_object : t -> string -> [ `object_ ] Gobject.obj -> unitSets the @attribute to contain the given @attr_value, if possible.
val set_attribute_mask : t -> [ `file_attribute_matcher ] Gobject.obj -> unitSets @mask on @info to match specific attribute types.
val set_attribute_int64 : t -> string -> int64 -> unitSets the @attribute to contain the given @attr_value, if possible.
Sets the @attribute to contain the given @attr_value, if possible.
val set_attribute_file_path : t -> string -> string -> unitSets the @attribute to contain the given @attr_value, if possible.
This function is meant to be used by language bindings that have specific handling for Unix paths.
val set_attribute_byte_string : t -> string -> string -> unitSets the @attribute to contain the given @attr_value, if possible.
val set_attribute_boolean : t -> string -> bool -> unitSets the @attribute to contain the given @attr_value, if possible.
val remove_attribute : t -> string -> unitRemoves all cases of @attribute from @info if it exists.
val list_attributes : t -> string option -> string array optionLists the file info structure's attributes.
val has_namespace : t -> string -> boolChecks if a file info structure has an attribute in the specified @name_space.
val has_attribute : t -> string -> boolChecks if a file info structure has an attribute named @attribute.
val get_symlink_target : t -> string optionGets the symlink target for a given #GFileInfo.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET.
val get_symbolic_icon : t -> [ `icon ] Gobject.obj optionGets the symbolic icon for a file.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON.
Gets the value of the sort_order attribute from the #GFileInfo. See %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
val get_size : t -> int64Gets 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.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_SIZE.
val get_name : t -> stringGets the name for a file. This is guaranteed to always be set.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_NAME.
val get_is_symlink : t -> boolChecks if a file is a symlink.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
Checks if a file is hidden.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
val get_is_backup : t -> boolChecks if a file is a backup file.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP.
val get_icon : t -> [ `icon ] Gobject.obj optionGets the icon for a file.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_ICON.
val get_file_type : t -> Gio_enums.filetypeGets a file's type (whether it is a regular file, symlink, etc). This is different from the file's content type, see g_file_info_get_content_type().
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_TYPE.
val get_etag : t -> string optionGets the entity tag(iface.File.html#entity-tags) for a given #GFileInfo. See %G_FILE_ATTRIBUTE_ETAG_VALUE.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_ETAG_VALUE.
val get_edit_name : t -> stringGets the edit name for a file.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
val get_display_name : t -> stringGets a display name for a file. This is guaranteed to always be set.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
val get_content_type : t -> string optionGets the file's content type.
It is an error to call this if the #GFileInfo does not contain %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
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 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.
val get_attribute_type : t -> string -> Gio_enums.fileattributetypeGets the attribute type for an attribute key.
val get_attribute_stringv : t -> string -> string array optionGets the value of a stringv attribute. If the attribute does not contain a stringv, %NULL will be returned.
val get_attribute_string : t -> string -> string optionGets the value of a string attribute. If the attribute does not contain a string, %NULL will be returned.
val get_attribute_status : t -> string -> Gio_enums.fileattributestatusGets the attribute status for an attribute key.
val get_attribute_object : t -> string -> [ `object_ ] Gobject.obj optionGets the value of a #GObject attribute. If the attribute does not contain a #GObject, %NULL will be returned.
val get_attribute_int64 : t -> string -> int64Gets 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 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.
val get_attribute_file_path : t -> string -> string optionGets the value of a byte string attribute as a file path.
If the attribute does not contain a byte string, `NULL` will be returned.
This function is meant to be used by language bindings that have specific handling for Unix paths.
val get_attribute_byte_string : t -> string -> string optionGets the value of a byte string attribute. If the attribute does not contain a byte string, %NULL will be returned.
val get_attribute_boolean : t -> string -> boolGets the value of a boolean attribute. If the attribute does not contain a boolean value, %FALSE will be returned.
val get_attribute_as_string : t -> string -> string optionGets the value of an attribute, formatted as a string. This escapes things as needed to make the string valid UTF-8.
First clears all of the GFileAttributegio-GFileAttribute of @dest_info, and then copies all of the file attributes from @src_info to @dest_info.
val clear_status : t -> unitClears the status information from @info.