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
154 Method post change the access and modifcation time with given time=value.
167 Method delete delete a file from the file system
48 Method _listdir wrap os.listdir in a private method that can be overriden in
184 Method _init_com [win32] init the stuff needed for using COM Objects
194 Method _resolve_shortcut [win32] Returns the path refered to by a windows shortcut (.lnk) file.

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):
Undocumented
def _listdir(self, path):
wrap os.listdir in a private method that can be overriden in the tests if needed
def get(self, uri, model=None):
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):
change the access and modifcation time with given time=value.
def delete(self, uri):
delete a file from the file system
def _init_com(self):
[win32] init the stuff needed for using COM Objects
def _resolve_shortcut(self, filename):
[win32] Returns the path refered to by a windows shortcut (.lnk) file.
API Documentation for Elisa Media Center, generated by pydoctor at 2008-10-13 19:16:17.