py::qo::sh Namespace Reference


Functions

def mkdirp
def rmf
def rmrf
def clean_dir

Variables

 cp = shutil.copyfile


Function Documentation

def py::qo::sh::clean_dir (   args  ) 

rm -rf && mkdir -p
00049                        :
00050         """
00051         rm -rf && mkdir -p
00052         """
00053         for path in args :
00054                 rmrf( path )
00055                 mkdirp( path )
00056 

def py::qo::sh::mkdirp (   args  ) 

mkdir -p *args
00023                     :
00024         """
00025         mkdir -p *args
00026         """
00027         for path in args :
00028                 if not os.path.exists( path ) :
00029                         os.makedirs( path )
00030 
cp = shutil.copyfile

def py::qo::sh::rmf (   args  ) 

rm -f *args
ignore when file doesn't exist
00033                  :
00034         """
00035         rm -f *args
00036         ignore when file doesn't exist
00037         """
00038         for path in args :
00039                 if os.path.exists(path) :
00040                         os.unlink(path)
00041 
def rmrf( *args ) :

def py::qo::sh::rmrf (   args  ) 

rm -rf *args
00042                   :
00043         """
00044         rm -rf *args
00045         """
00046         for path in args :
00047                 shutil.rmtree( path, True )
00048 
def clean_dir( *args ) :


Variable Documentation

py::qo::sh::cp = shutil.copyfile [static]


Generated on Tue Oct 9 20:40:32 2007 for Qomics by  doxygen 1.5.3