Skip to main content

# GitEmptyDirs !!

Ever came up with a scenario where you have extracted a software platform and initialised a git repository on it so that you can start building things on it ? If in case, the extracted platform contains lot of empty directories, those directories don’t get committed to you repository which can lead to lot of errors for your co worker. GitEmptyDirs is helpful in those kind of scenarios. It creates an empty .gitignore file or copies a specified file in all empty folders so that every folder gets committed.

## Installation

Easily install using one simple command:

pip install git-empty-dirs

## Usage

GitEmptyDirs can be triggered in below ways.

  1. git_empty_dirs

It uses the current directory as the base directory and creates an empty .gitignore file in all empty directories.

  1. git_empty_dirs -b <path to base folder>

It uses the path provided as the base directory and creates an empty .gitignore file in all empty directories.

  1. git_empty_dirs -s <path to sample file>

It uses the current directory as the base directory and copies the sample file in all empty directories.

  1. git_empty_dirs -b <path to base folder> -s <path to sample file>

It uses the path provided as the base directory and copies the sample file in all empty directories.

For help please invoke git_empty_dirs -h

usage: git_empty_dirs [-h] [-b BASE_DIR] [-s SAMPLE_FILE]

optional arguments:
-h, --help

show this help message and exit

-b BASE_DIR, --base-dir BASE_DIR

Specify the base directory for searching empty directories

-s SAMPLE_FILE, --sample-file SAMPLE_FILE

Specify the file to be copied to each empty directory

Release files for git-empty-dirs 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-empty-dirs 0.7
File Size Uploaded
git_empty_dirs-0.7.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-empty-dirs 0.7
File Interpreter ABI Platform
git_empty_dirs-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / git_empty_dirs-0.7.tar.gz

Download URL git_empty_dirs-0.7.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
59a445d67ce065268ec82bd808812f7dcb505ff56a822a5349e7c71b0d9f51d1
BLAKE2b-256 checksum
How to use checksums
42b661b63ea9fb0a23d4e345b35003b07eb32acda8df91ab0a7c0c69bbe60f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / git_empty_dirs-0.7-py3-none-any.whl

Download URL git_empty_dirs-0.7-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d21512302e8bd6316f854feb343d731f837f42b63975645662a43753931a56
BLAKE2b-256 checksum
How to use checksums
c291f7d63e6ec79e8aa709f3abaefd70b2796c0c6256796e30f7403cecdece9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

1 release file

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page