Nemo.FileInfo¶
- Implementations:
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Nemo.FileInfo¶
- Bases:
- Structure:
- classmethod create(location)¶
- Parameters:
location (
Gio.File
) – the location to create the file info for- Returns:
- Return type:
- classmethod create_for_uri(uri)¶
- Parameters:
uri (
str
) – the URI to lookup the file info for- Returns:
- Return type:
- classmethod list_copy(files)¶
- Parameters:
files ([
Nemo.FileInfo
]) – the files to copy- Returns:
a copy of files. Use
Nemo.FileInfo.list_free
to free the list and unref its contents.- Return type:
- classmethod list_free(files)¶
- Parameters:
files ([
Nemo.FileInfo
]) – a list created withNemo.FileInfo.list_copy
- classmethod lookup(location)¶
- Parameters:
location (
Gio.File
) – the location to lookup the file info for- Returns:
- Return type:
- classmethod lookup_for_uri(uri)¶
- Parameters:
uri (
str
) – the URI to lookup the file info for- Returns:
- Return type:
- get_file_type()¶
- Return type:
- get_mount()¶
- get_parent_info()¶
- Returns:
a
Nemo.FileInfo
for the parent of self, orNone
if self has no parent- Return type:
- get_parent_location()¶
- invalidate_extension_info()¶
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.)
- do_add_string_attribute(attribute_name, value) virtual¶
- do_get_file_type() virtual¶
- Return type:
- do_get_mount() virtual¶
- do_get_parent_info() virtual¶
- Returns:
a
Nemo.FileInfo
for the parent of file, orNone
if file has no parent- Return type:
- do_get_parent_location() virtual¶
- do_get_string_attribute(attribute_name) virtual¶
- do_invalidate_extension_info() virtual¶
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.)