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