Package conary :: Package conaryclient :: Module filetypes :: Class Directory
[hide private]
[frames] | no frames]

Class Directory

source code

object --+    
         |    
     _File --+
             |
            Directory


NAME
====

B{C{Directory}} - Define a directory filestream helper.

SYNOPSIS
========

C{Directory([I{requires}, I{provides}, I{flavor}, I{mode}, I{owner}, I{group}, I{tags}])}

DESCRIPTION
===========

The C{Directory} class defines a directory filestream helper.

PARAMETERS
==========
The following parameters apply to the Directory class.

B{requires}: (None) Marks this directory with the specified requirements.
This parameter is a deps.Dependency object.

B{provides}: (None) Marks this directory as providing certain features or
characteristics.  This parameter is a deps.Dependency object.

B{flavor}: (None) Marks this directory with the specified flavor.  File
flavors are aggregated to determine trove flavors.  This parameter
is a deps.Flavor object.

B{owner}: ('root') Marks this directory as owned by I{owner}.
This parameter is a string

B{group}: ('root') Marks this directory as belonging to I{group}.  This
parameter is a string

B{mode}: (0644) Defines the access permissons of this directory.  This
parameter is an integer.

B{tags} : (None) Tags associated with this directory.  When a file with a
tag is installed, removed, or changed, the listed tag handler is executed.
See documentation on tag handlers for more information.  This parameter
is a list of strings.

USER COMMANDS
=============
The following user commands are applicable to C{Directory}:

    - L{get(I{pathId})} : Returns a filestream with the settings
      represented by this class.

EXAMPLES
========

C{dir = Directory(contents = 'foo')}
C{dir.get()}

Creates a directory filestream helper, and retrieves the filestream
associated with it.



Nested Classes [hide private]
  fileClass
Instance Methods [hide private]
 
__init__(self, **kwargs) source code

Inherited from _File: get, getContents

Inherited from _File (private): _touchupFileStream

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  kwargs = {'flavor': None, 'group': 'root', 'mtime': None, 'own...

Inherited from _File: aliasedArgs, needSha1

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 
Overrides: _File.__init__

Class Variable Details [hide private]

kwargs

Value:
{'flavor': None,
 'group': 'root',
 'mtime': None,
 'owner': 'root',
 'perms': 493,
 'provides': None,
 'requires': None,
 'tags': None}