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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file emptyfile-0.1.1.tar.gz.

File metadata

  • Download URL: emptyfile-0.1.1.tar.gz
  • Upload date:
  • Size: 113.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for emptyfile-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8ab5f3966952c9a3dce5a03f949913dda013a5367692cac882cec8c747239dc9
MD5 461a57eefa60332e9a6150712dea8b41
BLAKE2b-256 5107d7e6eca23e3787788a35324338110025da3421265a4e4bbf59bfeba89b6b

See more details on using hashes here.

File details

Details for the file emptyfile-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: emptyfile-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for emptyfile-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca5695f6bcaaed5bb1f1b842f4ec9f233c2b53c1493d6853c60c77412472d8a
MD5 76415460bc0d9d81ae4f43053bd46456
BLAKE2b-256 7f5ad6fd40b5e3f8704bfa0ecffa741f3c19b27f782a447ad2d666d35c1a3ddc

See more details on using hashes here.

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