Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/password123456/old-file_dir-clean-up-from-list

Script to delete old files, directories from a specified list
https://github.com/password123456/old-file_dir-clean-up-from-list

clean-up directory disk-space python

Last synced: 19 days ago
JSON representation

Script to delete old files, directories from a specified list

Awesome Lists containing this project

README

        

# old_file_dir_clean_up_from_list
![made-with-python][made-with-python]
![Python Versions][pyversion-button]

[pyversion-button]: https://img.shields.io/pypi/pyversions/Markdown.svg
[made-with-python]: https://img.shields.io/badge/Made%20with-Python-1f425f.svg

# 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:
```python
# 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.