(self,dst_loc)
return backupdirs
Return the list of backup directories
Return the list of backup directories
Return the list of backup directories
def get_backup_list(self,dst_loc):
        """Return the list of backup directories"""
        dirlist = glob.glob(os.path.abspath(dst_loc) + "*")
        dirlist.sort(lambda x,y: self.order_backupdirs(dst_loc, x,y))
        backupdirs = [ dir for dir in dirlist
            if os.path.isdir(dir) and os.path.isfile(os.path.join(dir, "backup_label"))
                or os.path.isfile(os.path.join(dir, "backup_label.old"))]
        return backupdirs
def get_backup_list ( self , dst_loc ) : dirlist = glob . glob ( os . path . abspath ( dst_loc ) + "*" ) dirlist . sort ( lambda x , y : self . order_backupdirs ( dst_loc , x , y ) ) backupdirs = [ dir for dir in dirlist if os . path . isdir ( dir ) and os . path . isfile ( os . path . join ( dir , "backup_label" ) ) or os . path . isfile ( os . path . join ( dir , "backup_label.old" ) ) ] return backupdirs