Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
def clean():  # @DuplicatedSignature
    """ Clean Downloads directory """
    trash = j(HOME, "Downloads")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Exemplo n.º 4
0
def clean():  # @DuplicatedSignature
    """ Clean compilers ccache .ccache directory """
    trash = j(HOME, ".ccache")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Exemplo n.º 5
0
def clean():  # @DuplicatedSignature
    """ Clean .cache """
    trash = j(HOME, ".cache")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Exemplo n.º 6
0
def clean():  # @DuplicatedSignature
    """ Clean thumbnails caches. """
    trash = j(HOME, ".thumbnails")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)
Exemplo n.º 7
0
def clean():  # @DuplicatedSignature
    """ Clean trashes. """
    trash = j(HOME, ".local", "share", "Trash")
    log.info("Cleaning {} ..".format(trash))
    cleandir(trash)