Skip to main content

A package to investigate a directory for cleanup

Project description

file_investigation

To identify files to cleanup a directory as per user's input

Input: a directory to be recursively searched Output: a csv report of files for deletion (category, full path to file).

This will include: identifying duplicate files, files which have not been accessed in over X days, files which are over Y bytes in size, directories containing large numbers of files, identifying uncompressed files.

usage: FileChecker.py [-h] [--dirname DIRNAME] [--days DAYS] [--size SIZE] [--filelimit FILELIMIT]

optional arguments: -h, --help show this help message and exit --dirname DIRNAME Please enter directory name --days DAYS Number of days last accessed --size SIZE File size in kilobytes --filelimit FILELIMIT specify number of files above which a directory is bigDir

Example: python3 FileChecker.py --dirname data --days 0 --size 450 --filelimit 4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FileChecker-purnimapachori-0.0.1.tar.gz (1.6 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page