Nautilus.FileInfoNautilus.FileInfo — Nautilus.FileInfo Reference |
Nautilus.FileInfo extends,gobject.GInterface {is_gone();get_file_type();get_location();get_name();get_uri();get_activation_uri();get_parent_info();get_parent_location();get_parent_uri();get_mount();get_uri_scheme();get_mime_type();is_mime_type(mime_type);is_directory();can_write();add_emblem(emblem_name);get_string_attribute(attribute_name);add_string_attribute(attribute_name,
value);invalidate_extension_info();
}
get_file_type();
Returns : |
the gio.FileType associated with the file |
get_parent_info();
Returns : |
the Nautilus.FileInfo object associated with the file's parent |
get_parent_location();
Returns : |
the gio.File associated with the file's parent location |
get_mount();
Returns : |
the gio.GMount associated with the file, if it exists |
is_mime_type(mimetype);
|
a mimetype string (i.e. "text/plain") |
Returns : |
whether the file's mimetype string matches the provided mimetype string |
get_string_attribute(attribute_name);
|
a string attribute name |
Returns : |
the value associated with the file attribute |
add_string_attribute(attribute_name,
value);
|
a string attribute name |
|
an attribute value |
invalidate_extension_info();
Invalidates the information Nautilus has about this file, which causes it to request new information
from its Nautilus.InfoProvider providers.