Skip to content

jamesflight/Python-Folder-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple python folder cleaner script

Keeps folders clean of old files.

For each of the directories listed in the config.yml file the script will remove any files or folders older than a specified number of days.

I use this to keep my downloads folder free of old junk.

Configure as follows:

folders:
  - /path/to/folder1
  - /path/to/folder2
days_to_keep_files: 7

I use this by adding to my crobtab to run every hour:

crontab -e

Add:

0       *       *       *       *       /path/to/daemon.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages