DataExport Class Reference

Class to synch a file or set of files between one location and another. More...

List of all members.

Public Member Functions

def __init__
def setPurge
def synch
 Synch up two directory structures.
def export
 Copy from source to dest.
def md5sum
 Returns an md5 hash for file fname.
def __copy
def __rename
def __checkDirs
def __compareTree
 Compare all files under sourceDir and destDir with md5.
def __treeWalk
 Walk a tree, executing function() on every file.
def __checkStat
 Check if source and directories exist, are writable, and the disks aren't full.
def __makeReadOnly
def __statusParse
def __sumfile

Public Attributes

 transfer

Static Public Attributes

int NO_ERROR = 0x0
int DIR_NOT_WRITABLE = 0x1
int NOT_EXTANT = 0x2
int DISK_FULL = 0x10
int DISK_FULL_LEVEL = 100

Private Attributes

 __purgeFiles


Detailed Description

Class to synch a file or set of files between one location and another.

Definition at line 43 of file DataExport.py.


Member Function Documentation

def __checkDirs   self,
  source,
  dest
 

Definition at line 171 of file DataExport.py.

def __checkStat   self,
  obj
 

Check if source and directories exist, are writable, and the disks aren't full.

Parameters:
obj File path
Returns:
Status

Definition at line 251 of file DataExport.py.

def __compareTree   self,
  sourceDir,
  destDir
 

Compare all files under sourceDir and destDir with md5.

Parameters:
sourceDir Source directory
destDir Destination directory

Definition at line 196 of file DataExport.py.

def __copy   self,
  source,
  dest
 

Definition at line 140 of file DataExport.py.

def __init__   self  ) 
 

Definition at line 54 of file DataExport.py.

def __makeReadOnly   self,
  file
 

Definition at line 270 of file DataExport.py.

def __rename   self,
  source,
  dest
 

Definition at line 167 of file DataExport.py.

def __statusParse   self,
  status
 

Definition at line 278 of file DataExport.py.

def __sumfile   self,
  fobj
 

Returns an md5 hash for an object with read() method.

Definition at line 288 of file DataExport.py.

def __treeWalk   self,
  tree,
  function
 

Walk a tree, executing function() on every file.

Definition at line 237 of file DataExport.py.

def export   self,
  source,
  dest
 

Copy from source to dest.

This routine will determine whether source is a file or a directory

Definition at line 96 of file DataExport.py.

def md5sum   self,
  fname
 

Returns an md5 hash for file fname.

Definition at line 116 of file DataExport.py.

def setPurge   self,
  purge
 

Definition at line 60 of file DataExport.py.

def synch   self,
  source,
  dest
 

Synch up two directory structures.

Synch only goes in one direction: source --> destination.

Definition at line 68 of file DataExport.py.


Member Data Documentation

__purgeFiles [private]
 

Definition at line 55 of file DataExport.py.

int DIR_NOT_WRITABLE = 0x1 [static]
 

Definition at line 47 of file DataExport.py.

int DISK_FULL = 0x10 [static]
 

Definition at line 50 of file DataExport.py.

int DISK_FULL_LEVEL = 100 [static]
 

Definition at line 52 of file DataExport.py.

int NO_ERROR = 0x0 [static]
 

Definition at line 46 of file DataExport.py.

int NOT_EXTANT = 0x2 [static]
 

Definition at line 48 of file DataExport.py.

transfer
 

Definition at line 57 of file DataExport.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:02 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO