Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def functions::BaseQAFunctions::_recursive_rmdir (   self,
) [private]

Remove a directory hierarchy.

Definition at line 55 of file functions.py.

00055                                          :
        '''Remove a directory hierarchy.
        for currentDir, dirs, files in os.walk(directory, topdown=False):
            for name in files:
                os.unlink(os.path.join(currentDir, name))
            for name in dirs:
                if os.path.islink(name):
                    os.unlink(os.path.join(currentDir, name))
                    os.rmdir(os.path.join(currentDir, name))
    # Output functions
    def header(self):

Generated by  Doxygen 1.6.0   Back to index