Пример #1
0
def clean():
    """ Clean all dotfile [Cc]ache directories under home. """
    dirs = find_tree_match_match(HOME, ".*", "[Cc]ache")
    # log.debug(dirs)
    for dir in dirs:
        log.info("Cleaning {} ..".format(dir))
        cleandir(dir)
Пример #2
0
def clean():  # @DuplicatedSignature
    """ Clean tmp's """
    trash = j(HOME, "tmp")
    if os.path.isdir(trash):
        log.info("Cleaning {} ..".format(trash))
        cleandir(trash)
    trash = j("/", "home", "tmp")
    if os.path.isdir(trash):
        log.info("Cleaning {} ..".format(trash))
        cleandir(trash)
Пример #3
0
def clean():  # @DuplicatedSignature
    """ Clean Downloads directory """
    trash = j(HOME, "Downloads")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Пример #4
0
def clean():  # @DuplicatedSignature
    """ Clean compilers ccache .ccache directory """
    trash = j(HOME, ".ccache")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Пример #5
0
def clean():  # @DuplicatedSignature
    """ Clean .cache """
    trash = j(HOME, ".cache")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Пример #6
0
def clean():  # @DuplicatedSignature
    """ Clean thumbnails caches. """
    trash = j(HOME, ".thumbnails")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Пример #7
0
def clean():  # @DuplicatedSignature
    """ Clean trashes. """
    trash = j(HOME, ".local", "share", "Trash")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)