Nautilus.FileInfo¶
- Implementations:
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Nautilus.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 ([
Nautilus.FileInfo
]) – the files to copy- Returns:
a copy of files. Use
Nautilus.FileInfo.list_free
to free the list and unref its contents.- Return type:
- classmethod list_free(files)¶
- Parameters:
files ([
Nautilus.FileInfo
]) – a list created withNautilus.FileInfo.list_copy
- classmethod lookup(location)¶
- Parameters:
location (
Gio.File
) – the location for which to look up a correspondingNautilus.FileInfo
object- Returns:
- Return type:
- classmethod lookup_for_uri(uri)¶
- Parameters:
uri (
str
) – the URI to lookup the file info for- Returns:
- Return type:
- add_string_attribute(attribute_name, value)¶
- get_activation_uri()¶
- Returns:
the activation URI of self, which may differ from the actual URI if e.g. the file is a .desktop file or a Nautilus XML link file
- Return type:
- get_file_type()¶
- Returns:
a
Gio.FileType
for the location of self- Return type:
- get_mount()¶
- get_parent_info()¶
- Returns:
a
Nautilus.FileInfo
for the parent of self, orNone
if self has no parent.- Return type:
It’s not safe to call this recursively multiple times, as it works only for files already cached by Nautilus.
- get_parent_location()¶
- get_parent_uri()¶
- Returns:
the URI for the parent location of self, or the empty string if it has none
- Return type:
- get_string_attribute(attribute_name)¶
- invalidate_extension_info()¶
- is_mime_type(mime_type)¶
- do_add_emblem(emblem_name) virtual¶
- Parameters:
emblem_name (
str
) – the name of an emblem
Adds an emblem to this file. See
Nautilus.FileInfo.add_emblem
() for details.
- do_add_string_attribute(attribute_name, value) virtual¶
-
Sets the specified string file attribute value. See
Nautilus.FileInfo.add_string_attribute
() for details.
- do_can_write() virtual¶
-
Returns whether the file is writable. See
Nautilus.FileInfo.can_write
() for details.
- do_get_activation_uri() virtual¶
- Returns:
the activation URI of file_info, which may differ from the actual URI if e.g. the file is a .desktop file or a Nautilus XML link file
- Return type:
Returns the file activation URI as a string. See
Nautilus.FileInfo.get_activation_uri
() for details.
- do_get_file_type() virtual¶
- Returns:
a
Gio.FileType
for the location of file_info- Return type:
Returns the file type. See
Nautilus.FileInfo.get_file_type
() for details.
- do_get_location() virtual¶
-
Returns the file location as a
Gio.File
. SeeNautilus.FileInfo.get_location
() for details.
- do_get_mime_type() virtual¶
- Returns:
the MIME type of file_info
- Return type:
Returns the file mime type as a string. See
Nautilus.FileInfo.get_mime_type
() for details.
- do_get_mount() virtual¶
-
Returns the file mount as a
Gio.Mount
. SeeNautilus.FileInfo.get_mount
() for details.
- do_get_name() virtual¶
- Returns:
the file name of file_info
- Return type:
Returns the file name as a string. See
Nautilus.FileInfo.get_name
() for details.
- do_get_parent_info() virtual¶
- Returns:
a
Nautilus.FileInfo
for the parent of file_info, orNone
if file_info has no parent.- Return type:
It’s not safe to call this recursively multiple times, as it works only for files already cached by Nautilus.
- do_get_parent_location() virtual¶
- Returns:
a
Gio.File
for the parent location of file_info, orNone
if file_info has no parent- Return type:
Returns the file parent location as a
Gio.File
. SeeNautilus.FileInfo.get_parent_location
() for details.
- do_get_parent_uri() virtual¶
- Returns:
the URI for the parent location of file_info, or the empty string if it has none
- Return type:
Returns the file parent URI as a string. See
Nautilus.FileInfo.get_parent_uri
() for details.
- do_get_string_attribute(attribute_name) virtual¶
- Parameters:
attribute_name (
str
) – the name of an attribute- Returns:
the value for the given attribute_name, or
None
if there is none- Return type:
Returns the specified file attribute as a string. See
Nautilus.FileInfo.get_string_attribute
() for details.
- do_get_uri() virtual¶
- Returns:
the file URI of file_info
- Return type:
Returns the file URI as a string. See
Nautilus.FileInfo.get_uri
() for details.
- do_get_uri_scheme() virtual¶
- Returns:
the URI scheme of file_info
- Return type:
Returns the file URI scheme as a string. See
Nautilus.FileInfo.get_uri_scheme
() for details.
- do_invalidate_extension_info() virtual¶
Invalidates information of the file provided by extensions. See
Nautilus.FileInfo.invalidate_extension_info
() for details.
- do_is_directory() virtual¶
-
Returns whether the file is a directory. See
Nautilus.FileInfo.is_directory
() for details.
- do_is_gone() virtual¶
- Returns:
whether the file has been deleted
- Return type:
Returns whether the file info is gone. See
Nautilus.FileInfo.is_gone
() for details.