def archivepastes(self, directory):
    pastecount = len([name for name in os.listdir(directory) if os.path.isfile(os.path.join(directory, name))])
    if (pastecount > 48000):
        archivefilename = (str(time.time()) + '.zip')
        os.system(((('zip -r pastebin_' + archivefilename) + ' ') + directory))
        os.system((('mv pastebin_' + archivefilename) + ' archive/.'))
        os.system((('rm ' + directory) + '/*'))
def archivepastes(self, directory):
    pastecount = len([name for name in os.listdir(directory) if os.path.isfile(os.path.join(directory, name))])
    if (pastecount > 48000):
        archivefilename = (str(time.time()) + '.zip')
        os.system(((('zip -r pastebin_' + archivefilename) + ' ') + directory))
        os.system((('mv pastebin_' + archivefilename) + ' archive/.'))
        os.system((('rm ' + directory) + '/*'))