Skip to content

password123456/old-file_dir-clean-up-from-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

old_file_dir_clean_up_from_list

made-with-python Python Versions

Features

  • Provides the ability to browse a specified directory to identify and delete outdated files, sub directories, etc.
  • Create a file named "list.txt" in the following format, where each line represents a delimiter, the target directory, and the number of days old:
# vim list.txt
ssh_logs,/data/logs/ssh_logs,30
system_logs,/var/log,30

And..

  • Feel free to modify and customize the code as per your requirements.
  • Please let me know if any changes are required or if additional features are needed.
  • If you find this helpful, please consider giving it a "star"🌟 to support further improvements.

About

Script to delete old files, directories from a specified list

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages