# Class e.p.b.m.f.DirectoryModel(FileModel):

Part of elisa.plugins.base.models.file View In Hierarchy

A directory model is a certain type of `elisa.plugins.base.models.file.FileModel` with the difference that it can contain other FileModels. They get stored in `files`.

You can identify a DirectoryModel by doing the isinstance or check if it has the `files` attribute.

Another slight difference between a Directory and a FileModel is that the size of a directory is always 0 (platform independent).

Instance Variables | files | files in the directory (type: `list` of `FileModel`s )

Line # | Kind | Name | Docs
--- | --- | --- | ---
65 | Method | __init__ | Undocumented
70 | Method | get_size | Undocumented

Inherited from Bindable (via FileModel, Model):

Line # | Kind | Name | Docs
--- | --- | --- | ---
34 | Method | bind | Bind a local `attribute` to `destination_attribute` of
73 | Method | unbind | Remove the binding of `attribute` to `destination_attribute` of
104 | Method | unbind_object | Remove all the bindings you have for a certain `destination_object`.
118 | Method | __setattr__ | Undocumented
136 | Method | __delattr__ | Undocumented

def __init__(self):
overrides elisa.plugins.base.models.file.FileModel.__init__
Undocumented
def get_size(self):
Undocumented