Skip to main content

empty file/folder remover.

Project description

EmptyFile

emptyfile


GitHub repo size GitHub contributors

🌐 Overview

emptyfile is a tiny console tool that removes empty files or directories from your filesystem. The program recursively traverses a given directory and analyizes each file.

🔌 Requirements

  • python 3

💻 Install

To install EmptyFile, follow these steps:

from git

git clone https://github.com/alexpdev/emptyfiles.git
cd emptyfiles
pip install .

from PyPi

pip install emptyfile

🚀 Usage

  • Remove empty files recursively from one or more base directories
emptyfiles /path/1 /path/2 /path/3 ...
  • Remove empty directories recursively from one or more base directories
emptyfiles -d /path/1 /path/2 /path/3 ...
  • Include a list of file extensions to ignore while checking for empty's
emptyfiles --exclude-ext .py .json ... -- /path/1 /path/2 ...
  • Include a list of file or directory names to ignore while searching for empty files
emptyfiles --exclude-names README.md __init__.py .gitignore -d /path/1 ...

Both the exclude-ext and exclude-names options can be used with or without the -d directory option

Contributing

Issues, Feature Requests and Pull Requests are all welcome.

📝 License

Apache 2.0 License See LICENSE file for more information.

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

emptyfile-0.1.1.tar.gz (113.1 kB view hashes)

Uploaded Source

Built Distribution

emptyfile-0.1.1-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

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