(self)
Remove existing files in bin, lib and doc
Remove existing files in bin, lib and doc
Remove existing files in bin lib and doc
def purge(self):
        """Remove existing files in bin, lib and doc"""
        for f_name in os.listdir(self.localrepo.bindir):
            f_path = self.localrepo.bindir + '/' + f_name
            FileUtil(f_path).register_prefix()
            FileUtil(f_path).remove(recursive=True)
        for f_name in os.listdir(self.localrepo.libdir):
            f_path = self.localrepo.libdir + '/' + f_name
            FileUtil(f_path).register_prefix()
            FileUtil(f_path).remove(recursive=True)
        for f_name in os.listdir(self.localrepo.docdir):
            f_path = self.localrepo.docdir + '/' + f_name
            FileUtil(f_path).register_prefix()
            FileUtil(f_path).remove(recursive=True)
def purge ( self ) : for f_name in os . listdir ( self . localrepo . bindir ) : f_path = self . localrepo . bindir + '/' + f_name FileUtil ( f_path ) . register_prefix ( ) FileUtil ( f_path ) . remove ( recursive = True ) for f_name in os . listdir ( self . localrepo . libdir ) : f_path = self . localrepo . libdir + '/' + f_name FileUtil ( f_path ) . register_prefix ( ) FileUtil ( f_path ) . remove ( recursive = True ) for f_name in os . listdir ( self . localrepo . docdir ) : f_path = self . localrepo . docdir + '/' + f_name FileUtil ( f_path ) . register_prefix ( ) FileUtil ( f_path ) . remove ( recursive = True )