Skip to main content

A script to clean your directories

Project description

clean
=====

## Objective

The python script "clean" allow the user to clean directory off temporary files with its default behavior.
With anoter configuration, it can allow you to clean a working directory before committing.

The final goal is to provide multiple configurations to clean a directory the exact way you want it.

## Suggestion

The best way to use this script at its fullest is to place clean.py in a personnal bin directory.
For example, you can create a directory "bin" in your home and add it to the variable $PATH.
Then, place the binaries and script you want to execute them wherever you are.
You can of course rename clean.py to clean or another name you prefer.

## Important options

### Help

./clean.py -h or ./clean.py --help

Print basical informations to the user, with a summary of the available commands.

### Pattern

./clean.py -p PATTERN or ./clean.py --pattern PATTERN

Allow the user to search for one or more pattern, overridding the default patterns.
You can use this option multiple times. For example, this command imitate the normal behavior : "./clean.py -p '#*#' -p '*~'"

### Force

./clean.py -f or ./clean.py --force

Skip the prompt for all the files targeted.
Use this command with prudence, and verify that the command will not remove a file you want to keep.

### Recursive

./clean.py -r or ./clean.py --recursive

Make a recursion to clean every subdirectory found.
Usefull if your working directory is subdivised into multiple directories.

### Configuration

./clean.py -c CONFIGURATION or ./clean.py --configuration CONFIGURATION

Override the default behavior with the given configuration.
The argument for this option must be the name of the configuration placed in $HOME/.config/clean.

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

clean_directories-1.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

clean_directories-1.1.0-py3-none-any.whl (7.3 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