Nemo.FileInfo

g GObject.GInterface GObject.GInterface Nemo.FileInfo Nemo.FileInfo GObject.GInterface->Nemo.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)

Virtual Methods

do_add_emblem (emblem_name)

do_add_string_attribute (attribute_name, value)

do_can_write ()

do_get_activation_uri ()

do_get_file_type ()

do_get_location ()

do_get_mime_type ()

do_get_mount ()

do_get_name ()

do_get_parent_info ()

do_get_parent_location ()

do_get_parent_uri ()

do_get_string_attribute (attribute_name)

do_get_uri ()

do_get_uri_scheme ()

do_invalidate_extension_info ()

do_is_directory ()

do_is_gone ()

do_is_mime_type (mime_Type)

Properties

None

Signals

None

Fields

None

Class Details

class Nemo.FileInfo
Bases:

GObject.GInterface

Structure:

Nemo.FileInfoInterface

classmethod create(location)
Parameters:

location (Gio.File) – the location to create the file info for

Returns:

a Nemo.FileInfo

Return type:

Nemo.FileInfo

classmethod create_for_uri(uri)
Parameters:

uri (str) – the URI to lookup the file info for

Returns:

a Nemo.FileInfo

Return type:

Nemo.FileInfo

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:

[Nemo.FileInfo]

classmethod list_free(files)
Parameters:

files ([Nemo.FileInfo]) – a list created with Nemo.FileInfo.list_copy

classmethod lookup(location)
Parameters:

location (Gio.File) – the location to lookup the file info for

Returns:

a Nemo.FileInfo

Return type:

Nemo.FileInfo

classmethod lookup_for_uri(uri)
Parameters:

uri (str) – the URI to lookup the file info for

Returns:

a Nemo.FileInfo

Return type:

Nemo.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()
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 Nemo.FileInfo for the parent of self, or None if self has no parent

Return type:

Nemo.FileInfo or None

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()

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.)

is_directory()
Return type:

bool

is_gone()
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

Return type:

Gio.File

do_get_mime_type() virtual
Return type:

str

do_get_mount() virtual
Returns:

a Gio.Mount for the mount of file, or None if file has no mount

Return type:

Gio.Mount or None

do_get_name() virtual
Return type:

str

do_get_parent_info() virtual
Returns:

a Nemo.FileInfo for the parent of file, or None if file has no parent

Return type:

Nemo.FileInfo or None

do_get_parent_location() virtual
Returns:

a Gio.File for the parent location of file, or None if file 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

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_is_directory() virtual
Return type:

bool

do_is_gone() virtual
Return type:

bool

do_is_mime_type(mime_Type) virtual
Parameters:

mime_Type (str) –

Return type:

bool