Package flumotion :: Package common :: Module interfaces :: Class IDirectory
[hide private]

Class IDirectory

source code

zope.interface.Interface --+    
                           |    
                       IFile --+
                               |
                              IDirectory

I am an interface representing a directory and it's metadata. I extend the IFile interface. To list files of a certain directory you first need to call flumotion.common.vfs.listDirectory, which will return an object implementing this interface.

Instance Methods [hide private]
a deferred firing a list of objects implementing IFile.
getFiles()
Fetches all the files in the directory specified.
source code

Inherited from IFile: getPath

Class Variables [hide private]
  _InterfaceClass__attrs = {'getFiles': <zope.interface.interfac...
  __bases__ = (<InterfaceClass flumotion.common.interfaces.IFile>)
  __identifier__ = 'flumotion.common.interfaces.IDirectory'
  __iro__ = (<InterfaceClass flumotion.common.interfaces.IDirect...
  __name__ = 'IDirectory'
  __sro__ = (<InterfaceClass flumotion.common.interfaces.IDirect...
  _implied = {<InterfaceClass flumotion.common.interfaces.IDirec...
  dependents = <WeakKeyDictionary at 140700300>

Inherited from IFile: filename, iconNames

Inherited from zope.interface.Interface (private): _Element__tagged_values

Method Details [hide private]

getFiles()

source code 

Fetches all the files in the directory specified.

Returns: a deferred firing a list of objects implementing IFile.
list of files

Class Variable Details [hide private]

_InterfaceClass__attrs

Value:
{'getFiles': <zope.interface.interface.Method object at 0x862eaec>}

__iro__

Value:
(<InterfaceClass flumotion.common.interfaces.IDirectory>,
 <InterfaceClass flumotion.common.interfaces.IFile>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass flumotion.common.interfaces.IDirectory>,
 <InterfaceClass flumotion.common.interfaces.IFile>,
 <InterfaceClass zope.interface.Interface>)

_implied

Value:
{<InterfaceClass flumotion.common.interfaces.IDirectory>: (),
 <InterfaceClass flumotion.common.interfaces.IFile>: (),
 <InterfaceClass zope.interface.Interface>: ()}