Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/password123456/old-file_dir-clean-up-from-list
- Owner: password123456
- License: gpl-3.0
- Created: 2023-08-08T00:33:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-08T04:27:28.000Z (over 1 year ago)
- Last Synced: 2024-11-08T13:41:39.391Z (2 months ago)
- Topics: clean-up, directory, disk-space, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.