Command line tool to nuke a directory
Command line tool for nuking a directory 💥.
nuke is intended to be super easy. The only dependency is a supported Python interpreter. You can get
$ pip install nuke
nuke is supported for Python 3.6+.
The most common usage of
nuke is when you wish to recreate a build directory for a build program such as CMake.
nuke, you just call
nuke from the command line and specify the directory you wish to nuke:
$ nuke path/to/directory
If you are already in the directory you wish to nuke, you don't need to exit the directory. Calling
nuke without any arguments will nuke the current directory:
$ nuke # same as "nuke ."
Since nuking is a dangerous operation and you don't want to inadvertently delete something important,
nuke always asks you to confirm the nuking of a directory. If you wish to override this since you know what you are doing or you wish to use
nuke in a shell script, you can pass in the
$ nuke -y /path/to/dir/
You can also specify a
.nukeignore file inside the directory to be nuked. This works similar to the
.gitignore file. Every file that matches a pattern in the
.nukeignore is ignored and spared from a gruesome fate of its eligible siblings.
will result in all
.py files not being nuked.
Suppose you just want to see what files will be nuked without actually deleting them, you can then run
nuke -l /path/to/dir, and this will print out the directory tree of all the files that will be nuked.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size nuke-2.4.2-py2.py3-none-any.whl (6.2 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size nuke-2.4.2.tar.gz (5.5 kB)||File type Source||Python version None||Upload date||Hashes View|