Top | ![]() |
![]() |
![]() |
![]() |
This inteface is implemented by NemoFile and provides access to certain information regarding a given file object. It is also used to add file attributes and notify a file of changes to those attribues when using a NemoInfoProvider.
NemoFileInfo * (*nemo_file_info_getter) (GFile *location
,gboolean create
);
GList *
nemo_file_info_list_copy (GList *files
);
a copy of files
.
Use nemo_file_info_list_free to free the list and unref its contents.
[element-type NemoFileInfo][transfer full]
GFile *
nemo_file_info_get_parent_location (NemoFileInfo *file
);
NemoFileInfo *
nemo_file_info_get_parent_info (NemoFileInfo *file
);
gboolean nemo_file_info_is_mime_type (NemoFileInfo *file
,const char *mime_type
);
void nemo_file_info_add_emblem (NemoFileInfo *file
,const char *emblem_name
);
char * nemo_file_info_get_string_attribute (NemoFileInfo *file
,const char *attribute_name
);
void nemo_file_info_add_string_attribute (NemoFileInfo *file
,const char *attribute_name
,const char *value
);
void
nemo_file_info_invalidate_extension_info
(NemoFileInfo *file
);
Notifies nemo to re-run info provider extensions on the given file.
This is useful if you have an extension that listens or responds to some external interface for changes to local file metadata (such as a cloud drive changing file emblems.)
When a change such as this occurs, call this on the file in question, and nemo will schedule a call to extension->update_file_info to update its own internal metadata.
NOTE: This does *not* need to be called on the tail end of a update_full/update_complete asynchronous extension. Prior to Nemo 3.6 this was indeed the case, however, due to a recursion issue in nemo-directory-async.c (see nemo 9e67417f8f09.)