GObject.Object
 Gio.FileInfo
                Gio.FileInfo
		   
| Import line: | Gio = imports.gi.Gio; | 
| GIR File: | Gio-2.0.gir | 
| C documentation: | GFileInfo | 
| Class : | FileInfo | 
| Extends: | GObject.Object | 
| None | 
| Method / Constructor | Defined By | |
|---|---|---|
| 
			new  Gio.FileInfo
				
				 () 
			
				
			
		 Create a new Gio.FileInfo 
			
			
			
				Create a new Gio.FileInfo
			
			
			
			 
			
			
			 
		    
		     
                     | ||
| 
			clear_status
				
				 () 
			
				
					 : 
					none
					
				
			
		 Clears the status information from info. 
			
				Clears the status information from info.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			copy_into
				
				 (FileInfo dest_info) 
			
				
					 : 
					none
					
				
			
		 Copies all of the GFileAttributes from src_info to dest_info. 
			
				Copies all of the GFileAttributes from src_info to dest_info.
		    
				
			
			
			
			
				 
 
 | Gio.FileInfo | |
| 
			dup
				
				 () 
			
				
					 : 
					Gio.FileInfo
					
				
			
		 Duplicates a file info structure. 
			
				Duplicates a file info structure.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| Gets the value of a attribute, formated as a string. 
			
				Gets the value of a attribute, formated as a string. This escapes things as needed to make the string valid utf8. When you're done with the string it must be freed with g_free(). 
 
 | Gio.FileInfo | |
| Gio.FileInfo | ||
| Gets the value of a byte string attribute. | Gio.FileInfo | |
| Gets the attribute type, value and status for an attribute key. 
			
				Gets the attribute type, value and status for an attribute key. FALSE otherwise. 
 
 | Gio.FileInfo | |
| Gets a signed 32-bit integer contained within the attribute. | Gio.FileInfo | |
| Gets a signed 64-bit integer contained within the attribute. | Gio.FileInfo | |
| 
			get_attribute_object
				
				 (String attribute) 
			
				
					 : 
					GObject.Object
					
				
			
		 Gets the value of a GObject attribute. 
			
				Gets the value of a GObject attribute. If the attribute does not contain a GObject, NULL will be returned. NULL otherwise. 
 
 | Gio.FileInfo | |
| 
			get_attribute_status
				
				 (String attribute) 
			
				
					 : 
					Gio.FileAttributeStatus
					
				
			
		 Gets the attribute status for an attribute key. 
			
				Gets the attribute status for an attribute key. G_FILE_ATTRIBUTE_STATUS_UNSET if the key is invalid. 
 
 | Gio.FileInfo | |
| Gets the value of a string attribute. | Gio.FileInfo | |
| Gets the value of a stringv attribute. 
			
				Gets the value of a stringv attribute. If the attribute does not contain a stringv, NULL will be returned. NULL otherwise. Do not free. These returned strings are UTF-8. 
 
 | Gio.FileInfo | |
| 
			get_attribute_type
				
				 (String attribute) 
			
				
					 : 
					Gio.FileAttributeType
					
				
			
		 Gets the attribute type for an attribute key. 
			
				Gets the attribute type for an attribute key. G_FILE_ATTRIBUTE_TYPE_INVALID if the key is not set. 
 
 | Gio.FileInfo | |
| Gets an unsigned 32-bit integer contained within the attribute. | Gio.FileInfo | |
| Gets a unsigned 64-bit integer contained within the attribute. | Gio.FileInfo | |
| 
			get_content_type
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the file's content type. 
			
				Gets the file's content type.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_display_name
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets a display name for a file. 
			
				Gets a display name for a file.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_edit_name
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the edit name for a file. 
			
				Gets the edit name for a file.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_etag
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the entity tag for a given GFileInfo. 
			
				Gets the entity tag for a given GFileInfo. See G_FILE_ATTRIBUTE_ETAG_VALUE. 
 | Gio.FileInfo | |
| 
			get_file_type
				
				 () 
			
				
					 : 
					Gio.FileType
					
				
			
		 Gets a file's type (whether it is a regular file, symlink, etc). 
			
				Gets 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(). 
 | Gio.FileInfo | |
| 
			get_icon
				
				 () 
			
				
					 : 
					Gio.Icon
					
				
			
		 Gets the icon for a file. 
			
				Gets the icon for a file.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_is_backup
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if a file is a backup file. 
			
				Checks if a file is a backup file.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_is_hidden
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if a file is hidden. 
			
				Checks if a file is hidden.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_is_symlink
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if a file is a symlink. 
			
				Checks if a file is a symlink.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_modification_time
				
				 (TimeVal result) 
			
				
					 : 
					none
					
				
			
		 Gets the modification time of the current info and sets it in result. 
			
				Gets the modification time of the current info and sets it in result. 
 
 | Gio.FileInfo | |
| 
			get_name
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the name for a file. 
			
				Gets the name for a file.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_size
				
				 () 
			
				
					 : 
					gint64
					
				
			
		 Gets the file's size. 
			
				Gets the file's size.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| 
			get_sort_order
				
				 () 
			
				
					 : 
					gint32
					
				
			
		 Gets the value of the sort_order attribute from the GFileInfo. 
			
				Gets the value of the sort_order attribute from the GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER. 
 | Gio.FileInfo | |
| 
			get_symlink_target
				
				 () 
			
				
					 : 
					String
					
				
			
		 Gets the symlink target for a given GFileInfo. 
			
				Gets the symlink target for a given GFileInfo.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileInfo | |
| Gio.FileInfo | ||
| Checks if a file info structure has an attribute in the specified name_space. | Gio.FileInfo | |
| Lists the file info structure's attributes. | Gio.FileInfo | |
| 
			remove_attribute
				
				 (String attribute) 
			
				
					 : 
					none
					
				
			
		 Removes all cases of attribute from info if it exists. 
			
				Removes all cases of attribute from info if it exists.
		    
				
			
			
			
			
				 
 
 | Gio.FileInfo | |
| Sets the attribute to contain the given value, if possible. 
			
				Sets the attribute to contain the given value, if possible.
		    
				
			
			
			
			
				 
 
 | Gio.FileInfo | |
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| 
			set_attribute_mask
				
				 (FileAttributeMatcher mask) 
			
				
					 : 
					none
					
				
			
		 Sets mask on info to match specific attribute types. 
			
				Sets mask on info to match specific attribute types.
		    
				
			
			
			
			
				 
 
 | Gio.FileInfo | |
| Sets the attribute to contain the given attr_value, if possible. 
			
				Sets the attribute to contain the given attr_value, if possible. 
 
 | Gio.FileInfo | |
| Sets the attribute status for an attribute key. 
			
				Sets 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. 
 
 | Gio.FileInfo | |
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| Gio.FileInfo | ||
| 
			set_content_type
				
				 (String content_type) 
			
				
					 : 
					none
					
				
			
		 Sets the content type attribute for a given GFileInfo. 
			
				Sets the content type attribute for a given GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE. 
 
 | Gio.FileInfo | |
| 
			set_display_name
				
				 (String display_name) 
			
				
					 : 
					none
					
				
			
		 Sets the display name for the current GFileInfo. 
			
				Sets the display name for the current GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME. 
 
 | Gio.FileInfo | |
| 
			set_edit_name
				
				 (String edit_name) 
			
				
					 : 
					none
					
				
			
		 Sets the edit name for the current file. 
			
				Sets the edit name for the current file. See G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME. 
 
 | Gio.FileInfo | |
| 
			set_file_type
				
				 (FileType type) 
			
				
					 : 
					none
					
				
			
		 Sets the file type in a GFileInfo to type. 
			
				Sets the file type in a GFileInfo to type. See G_FILE_ATTRIBUTE_STANDARD_TYPE. 
 
 | Gio.FileInfo | |
| 
			set_icon
				
				 (Icon icon) 
			
				
					 : 
					none
					
				
			
		 Sets the icon for a given GFileInfo. 
			
				Sets the icon for a given GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_ICON. 
 
 | Gio.FileInfo | |
| 
			set_is_hidden
				
				 (gboolean is_hidden) 
			
				
					 : 
					none
					
				
			
		 Sets the "is_hidden" attribute in a GFileInfo according to is_symlink. 
			
				Sets the "is_hidden" attribute in a GFileInfo according to is_symlink. See G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN. 
 
 | Gio.FileInfo | |
| 
			set_is_symlink
				
				 (gboolean is_symlink) 
			
				
					 : 
					none
					
				
			
		 Sets the "is_symlink" attribute in a GFileInfo according to is_symlink. 
			
				Sets the "is_symlink" attribute in a GFileInfo according to is_symlink. See G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK. 
 
 | Gio.FileInfo | |
| 
			set_modification_time
				
				 (TimeVal mtime) 
			
				
					 : 
					none
					
				
			
		 Sets the G_FILE_ATTRIBUTE_TIME_MODIFIED attribute in the file info to the given time value. 
			
				Sets the G_FILE_ATTRIBUTE_TIME_MODIFIED attribute in the file info to the given time value. 
 
 | Gio.FileInfo | |
| 
			set_name
				
				 (String name) 
			
				
					 : 
					none
					
				
			
		 Sets the name attribute for the current GFileInfo. 
			
				Sets the name attribute for the current GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_NAME. 
 
 | Gio.FileInfo | |
| 
			set_size
				
				 (gint64 size) 
			
				
					 : 
					none
					
				
			
		 Sets the G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info to the given size. 
			
				Sets the G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info to the given size. 
 
 | Gio.FileInfo | |
| 
			set_sort_order
				
				 (gint32 sort_order) 
			
				
					 : 
					none
					
				
			
		 Sets the sort order attribute in the file info structure. 
			
				Sets the sort order attribute in the file info structure. See G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER. 
 
 | Gio.FileInfo | |
| 
			set_symlink_target
				
				 (String symlink_target) 
			
				
					 : 
					none
					
				
			
		 Sets the G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info to the given symlink target. 
			
				Sets the G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info to the given symlink target. 
 
 | Gio.FileInfo | |
| 
			unset_attribute_mask
				
				 () 
			
				
					 : 
					none
					
				
			
		 Unsets a mask set by g_file_info_set_attribute_mask(), if one is set. 
			
				Unsets a mask set by g_file_info_set_attribute_mask(), if one is set. 
 | Gio.FileInfo | |
| None | 
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| Gio.File Method | 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 | 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 | 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 | 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 | 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. |