Nautilus.FileInfo

g GObject.GInterface GObject.GInterface Nautilus.FileInfo Nautilus.FileInfo GObject.GInterface->Nautilus.FileInfo

Implementations:
 None

Methods

class create (location)
class create_for_uri (uri)
class list_copy (files)
class list_free (files)
class lookup (location)
class lookup_for_uri (uri)
  add_emblem (emblem_name)
  add_string_attribute (attribute_name, value)
  can_write ()
  get_activation_uri ()
  get_file_type ()
  get_location ()
  get_mime_type ()
  get_mount ()
  get_name ()
  get_parent_info ()
  get_parent_location ()
  get_parent_uri ()
  get_string_attribute (attribute_name)
  get_uri ()
  get_uri_scheme ()
  invalidate_extension_info ()
  is_directory ()
  is_gone ()
  is_mime_type (mime_type)

Properties

None

Signals

None

Fields

None

Class Details

class Nautilus.FileInfo
Bases:GObject.GInterface
Structure:Nautilus.FileInfoInterface
classmethod create(location)
Parameters:location (Gio.File) – the location to create the file info for
Returns:a Nautilus.FileInfo
Return type:Nautilus.FileInfo
classmethod create_for_uri(uri)
Parameters:uri (str) – the URI to lookup the file info for
Returns:a Nautilus.FileInfo
Return type:Nautilus.FileInfo
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:[Nautilus.FileInfo]
classmethod list_free(files)
Parameters:files ([Nautilus.FileInfo]) – a list created with Nautilus.FileInfo.list_copy
classmethod lookup(location)
Parameters:location (Gio.File) – the location for which to look up a corresponding Nautilus.FileInfo object
Returns:a Nautilus.FileInfo
Return type:Nautilus.FileInfo
classmethod lookup_for_uri(uri)
Parameters:uri (str) – the URI to lookup the file info for
Returns:a Nautilus.FileInfo
Return type:Nautilus.FileInfo
add_emblem(emblem_name)
Parameters:emblem_name (str) –
add_string_attribute(attribute_name, value)
Parameters:
  • attribute_name (str) –
  • value (str) –
can_write()
Return type:bool
get_activation_uri()
Return type:str
get_file_type()
Return type:Gio.FileType
get_location()
Returns:a Gio.File for the location of self
Return type:Gio.File
get_mime_type()
Returns:the MIME type of self
Return type:str
get_mount()
Returns:a Gio.Mount for the mount of self, or None if self has no mount
Return type:Gio.Mount or None
get_name()
Return type:str
get_parent_info()
Returns:a Nautilus.FileInfo for the parent of self, or None if self has no parent.
Return type:Nautilus.FileInfo or None

It’s not safe to call this recursively multiple times, as it works only for files already cached by Nautilus.

get_parent_location()
Returns:a Gio.File for the parent location of self, or None if self has no parent
Return type:Gio.File or None
get_parent_uri()
Return type:str
get_string_attribute(attribute_name)
Parameters:attribute_name (str) –
Return type:str
get_uri()
Return type:str
get_uri_scheme()
Return type:str
invalidate_extension_info()
is_directory()
Return type:bool
is_gone()
Returns:whether the file has been deleted
Return type:bool
is_mime_type(mime_type)
Parameters:mime_type (str) –
Return type:bool
do_add_emblem(emblem_name) virtual
Parameters:emblem_name (str) –
do_add_string_attribute(attribute_name, value) virtual
Parameters:
  • attribute_name (str) –
  • value (str) –
do_can_write() virtual
Return type:bool
do_get_activation_uri() virtual
Return type:str
do_get_file_type() virtual
Return type:Gio.FileType
do_get_location() virtual
Returns:a Gio.File for the location of file_info
Return type:Gio.File
do_get_mime_type() virtual
Returns:the MIME type of file_info
Return type:str
do_get_mount() virtual
Returns:a Gio.Mount for the mount of file_info, or None if file_info has no mount
Return type:Gio.Mount or None
do_get_name() virtual
Return type:str
do_get_parent_info() virtual
Returns:a Nautilus.FileInfo for the parent of file_info, or None if file_info has no parent.
Return type:Nautilus.FileInfo or None

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, or None if file_info has no parent
Return type:Gio.File or None
do_get_parent_uri() virtual
Return type:str
do_get_string_attribute(attribute_name) virtual
Parameters:attribute_name (str) –
Return type:str
do_get_uri() virtual
Return type:str
do_get_uri_scheme() virtual
Return type:str
do_invalidate_extension_info() virtual
do_is_directory() virtual
Return type:bool
do_is_gone() virtual
Returns:whether the file has been deleted
Return type:bool
do_is_mime_type(mime_type) virtual
Parameters:mime_type (str) –
Return type:bool