# Class e.p.b.l.LocalResource(ResourceProvider):

Part of elisa.plugins.base.local_resource View In Hierarchy

Access resources on the local file system

Line # | Kind | Name | Docs
--- | --- | --- | ---
43 | Method | __init__ | Undocumented
55 | Method | get | This reacts different in the case you give it a directory. If you want
145 | Method | post | change the access and modifcation time with given time=value.
158 | Method | delete | delete a file from the file system

Inherited from ResourceProvider:

Line # | Kind | Name | Docs
--- | --- | --- | ---
107 | Method | put | Put one resource into another. Both resources are identified with URIs.

Inherited from Component (via ResourceProvider):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.
130 | Method | initialize | Initialize the component.
142 | Method | clean | Clean the component.

def __init__(self):
overrides elisa.core.log.Loggable.__init__
Undocumented
def get(self, uri, model=None):
overrides elisa.core.components.resource_provider.ResourceProvider.get

    This reacts different in the case you give it a directory. If you want
    to have the C{Files} of a directory, make sure you have a ending '/' in
    your request. Otherwise the implementation assumes that you just want to
    have informations about that object (like the size and the modification
    time). The context model is reused if given. But in case it is a
    directory listing the C{Files} attribute is cleared before.

    Some example request would be: uri-> model with data you get

    C{file:///tmp}  -> empty DirectoryModel with informations about the
                       directory it self
    C{file://tmp/}  -> Directory with all the files (and directories) in it

def post(self, uri, time=None):
overrides elisa.core.components.resource_provider.ResourceProvider.post
change the access and modifcation time with given time=value.

def delete(self, uri):
overrides elisa.core.components.resource_provider.ResourceProvider.delete
delete a file from the file system