Package Ganga :: Package Utility :: Package AMGAServerTools :: Module directoryManagement :: Class Collections
[hide private]
[frames] | no frames]

Class Collections

source code

Represents interface for manipulating collections (directories)

Instance Methods [hide private]
 
__init__(self, host='gangamd.cern.ch', port=8822, login='root', password='', keepalive=False, reqSSL=True, **kwds) source code
 
createDir(self, dir)
Creates the directory dir if it does not yet exist but parent dir already exist
source code
 
listDir(self, dir)
Returns names of all subdirectories in the directory dir
source code
 
statDir(self, dir)
Returns owner and owner-permissions for the directory dir
source code
 
removeDir(self, dir)
Removes all directories matching path.
source code
 
pwd(self)
Returns the current directory
source code
 
cd(self, dir)
Changes the current directory to the given directory
source code
 
chown(self, dir, new_owner)
Changes the owner of the directory
source code
 
chmod(self, dir, new_permissions)
Changes owner permidssions for the directory.
source code
 
aclAdd(self, dir, group, rights)
Adds group rights to the dir ACL.
source code
 
aclRemove(self, dir, group)
Removes group from the dir ACL.
source code
 
aclShow(self, dir)
Shows the dir ACL
source code
Method Details [hide private]

removeDir(self, dir)

source code 

Removes all directories matching path. Directories are only deleted if they are empty and they have no attributes defined

chmod(self, dir, new_permissions)

source code 

Changes owner permidssions for the directory. The format of new_permissions is rwx, where "-" signs can be substituted for the letters if certain priviledges have to be ommitted

aclAdd(self, dir, group, rights)

source code 

Adds group rights to the dir ACL. The format of the group user:groupname. The format of rights is rwx

aclRemove(self, dir, group)

source code 

Removes group from the dir ACL. The format of the group user:groupname