GObject.Object
 Gio.FileEnumerator
                Gio.FileEnumerator
		   
| Import line: | Gio = imports.gi.Gio; | 
| GIR File: | Gio-2.0.gir | 
| C documentation: | GFileEnumerator | 
| Class : | FileEnumerator | 
| Extends: | GObject.Object | 
| Properties | Defined By | |
|---|---|---|
| 
				container : Gio.File 
                   
                     
			 | Gio.FileEnumerator | |
| 
				parent_instance : GObject.Object 
                 read only  
                     
			 | Gio.FileEnumerator | |
| 
				priv : Gio.FileEnumeratorPrivate 
                 read only  
                     
			 | Gio.FileEnumerator | |
| Method / Constructor | Defined By | |
|---|---|---|
| 
			new  Gio.FileEnumerator
				
				 (Object properties) 
			
				
			
		 Create a new Gio.FileEnumerator 
			
			
			
				Create a new Gio.FileEnumerator
			
			
				 
 | ||
| 
			close
				
				 (Cancellable cancellable) 
			
				
					 : 
					gboolean
					
				
			
		 Releases all resources used by this enumerator, making the enumerator return G_IO_ERROR_CLOSED on all calls. 
			
				Releases all resources used by this enumerator, making the enumerator return G_IO_ERROR_CLOSED on all calls. This will be automatically called when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible. 
 
 | Gio.FileEnumerator | |
| 
			close_async
				
				 (gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) 
			
				
					 : 
					none
					
				
			
		 Asynchronously closes the file enumerator. 
			
				Asynchronously closes the file enumerator. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned in g_file_enumerator_close_finish(). 
 
 | Gio.FileEnumerator | |
| 
			close_finish
				
				 (AsyncResult result) 
			
				
					 : 
					gboolean
					
				
			
		 Finishes closing a file enumerator, started from g_file_enumerator_close_async(). 
			
				Finishes closing a file enumerator, started from g_file_enumerator_close_async(). If the file enumerator was already closed when g_file_enumerator_close_async() was called, then this function will report G_IO_ERROR_CLOSED in error, and return FALSE. If the file enumerator had pending operation when the close operation was started, then this function will report G_IO_ERROR_PENDING, and return FALSE. If cancellable was not NULL, then the operation may have been cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be set, and FALSE will be returned. 
 
 | Gio.FileEnumerator | |
| 
			get_container
				
				 () 
			
				
					 : 
					Gio.File
					
				
			
		 Get the GFile container which is being enumerated. 
			
				Get the GFile container which is being enumerated.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileEnumerator | |
| 
			has_pending
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if the file enumerator has pending operations. 
			
				Checks if the file enumerator has pending operations.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileEnumerator | |
| 
			is_closed
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks if the file enumerator has been closed. 
			
				Checks if the file enumerator has been closed.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.FileEnumerator | |
| 
			next_file
				
				 (Cancellable cancellable) 
			
				
					 : 
					Gio.FileInfo
					
				
			
		 Returns information for the next file in the enumerated object. 
			
				Returns information for the next file in the enumerated object. Will block until the information is available. The GFileInfo returned from this function will contain attributes that match the attribute string that was passed when the GFileEnumerator was created. On error, returns NULL and sets error to the error. If the enumerator is at the end, NULL will be returned and error will be unset. Free the returned object with g_object_unref() when no longer needed. 
 
 | Gio.FileEnumerator | |
| 
			next_files_async
				
				 (gint32 num_files, gint32 io_priority, Cancellable cancellable, Function callback, void* user_data) 
			
				
					 : 
					none
					
				
			
		 Request information for a number of files from the enumerator asynchronously. 
			
				Request information for a number of files from the enumerator asynchronously. When all i/o for the operation is finished the callback will be called with the requested information. The callback can be called with less than num_files files in case of error or at the end of the enumerator. In case of a partial error the callback will be called with any succeeding items and no error, and on the next request the error will be reported. If a request is cancelled the callback will be called with G_IO_ERROR_CANCELLED. During an async request no other sync and async calls are allowed, and will result in G_IO_ERROR_PENDING errors. Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT. 
 
 | Gio.FileEnumerator | |
| 
			next_files_finish
				
				 (AsyncResult result) 
			
				
					 : 
					Array
					
				
			
		 Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). 
			
				Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). g_list_free() and unref the infos with g_object_unref() when you're done with them. 
 
 | Gio.FileEnumerator | |
| 
			set_pending
				
				 (gboolean pending) 
			
				
					 : 
					none
					
				
			
		 Sets the file enumerator as having pending operations. 
			
				Sets the file enumerator as having pending operations.
		    
				
			
			
			
			
				 
 
 | Gio.FileEnumerator | |
| None | 
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| Gio.File Method | 
			enumerate_children
				
				 (String attributes, FileQueryInfoFlags flags, Cancellable cancellable) 
			
				
					 : 
					Gio.FileEnumerator
					
				
			
		 Gets the requested information about the files in a directory. | 
| Gio.File Method | 
			enumerate_children_finish
				
				 (AsyncResult res) 
			
				
					 : 
					Gio.FileEnumerator
					
				
			
		 Finishes an async enumerate children operation. |