Caja.FileInfo
Prev | Available Classes | Next

## Caja.FileInfo

Caja.FileInfo — Caja.FileInfo Reference

## Synopsis

    class Caja.FileInfo(gobject.GInterface):
        def is_gone()
        def get_file_type()
        def get_location()
        def get_name()
        def get_uri()
        def get_activation_uri()
        def get_parent_info()
        def get_parent_location()
        def get_parent_uri()
        def get_mount()
        def get_uri_scheme()
        def get_mime_type()
        def is_mime_type(mime_type)
        def is_directory()
        def can_write()
        def add_emblem(emblem_name)
        def get_string_attribute(attribute_name)
        def add_string_attribute(attribute_name, value)
        def invalidate_extension_info()

## Ancestry

    +-- gobject.GInterface
        +-- Caja.FileInfo

## Description

`Caja.FileInfo` objects are passed to extensions by the `Caja.InfoProvider`.

## Public Methods

### Caja.FileInfo.is_gone

        def is_gone()

Returns : | whether the file still exists

### Caja.FileInfo.get_file_type

        def get_file_type()

Returns : | the `gio.FileType` associated with the file

### Caja.FileInfo.get_location

        def get_location()

Returns : | the `gio.File` associated with the file

### Caja.FileInfo.get_name

        def get_name()

Returns : | the basename of the file

### Caja.FileInfo.get_uri

        def get_uri()

Returns : | the uri of the file

### Caja.FileInfo.get_activation_uri

        def get_activation_uri()

Returns : | the activation uri of the file

### Caja.FileInfo.get_parent_info

        def get_parent_info()

Returns : | the `Caja.FileInfo` object associated with the file's parent

### Caja.FileInfo.get_parent_location

        def get_parent_location()

Returns : | the `gio.File` associated with the file's parent location

### Caja.FileInfo.get_parent_uri

        def get_parent_uri()

Returns : | the uri of the file's parent

### Caja.FileInfo.get_mount

        def get_mount()

Returns : | the `gio.GMount` associated with the file, if it exists

### Caja.FileInfo.get_uri_scheme

        def get_uri_scheme()

Returns : | the uri scheme of the file

### Caja.FileInfo.get_mime_type

        def get_mime_type()

Returns : | the mimetype of the file

### Caja.FileInfo.is_mime_type

        def is_mime_type(mimetype)

`mimetype` : | a mimetype string (i.e. "text/plain")
Returns : | whether the file's mimetype string matches the provided mimetype string

### Caja.FileInfo.is_directory

        def is_directory()

Returns : | whether the item is a directory

### Caja.FileInfo.can_write

        def can_write()

Returns : | whether the file is writeable

### Caja.FileInfo.add_emblem

        def add_emblem(emblem_name)

`emblem_name` : | the name of an emblem to add

### Caja.FileInfo.get_string_attribute

        def get_string_attribute(attribute_name)

`attribute_name` : | a string attribute name
Returns : | the value associated with the file attribute

### Caja.FileInfo.add_string_attribute

        def add_string_attribute(attribute_name, value)

`attribute_name` : | a string attribute name
`value` : | an attribute value

### Caja.FileInfo.invalidate_extension_info

        def invalidate_extension_info()

Invalidates the information Caja has about this file, which causes it to request new information from its `Caja.InfoProvider` providers.

Prev | Up | Next
Caja.Column | Home | Caja.Menu