An open API service indexing awesome lists of open source software.

https://github.com/000daniel/deldir-plugin

deldir is a command plugin designed for Linux systems, to delete directories,files and folders.
https://github.com/000daniel/deldir-plugin

command csharp linux plugin terminal

Last synced: 3 months ago
JSON representation

deldir is a command plugin designed for Linux systems, to delete directories,files and folders.

Awesome Lists containing this project

README

          

# deldir plugin - command
    This plugin allows you to delete entire directories, and it is compatible with elevated privileges.

    Alternatively this plugin allows you to choose whether you want to delete only files or only folders.

    You also have the option to delete a single file.

    This plugin is a terminal command.



![deldir_icon_v2](https://user-images.githubusercontent.com/90350173/152388050-206c530a-65b7-46fe-8320-337451f9b3b1.png)




## Usage
    Available Flags:

        `-q, --quiet             don't print folder/file tree`

        `-i, --information       display extra information`

        `-b, --basedirectory     delete the base directory`

        `--fol, --foldersonly    delete only folders`

        `--fil, --filesonly      delete only files`

    Examples:

        `deldir`

        `deldir -i -b`

        `deldir Desktop/folder`

        `deldir Desktop/folder -i -b`

        `deldir Desktop/folder -q -b`

        `deldir Desktop/folder --fil`





![image](https://user-images.githubusercontent.com/90350173/152392515-d915103a-a575-4366-92db-58d03ec2c0a2.png)




## Note before installing
    This script and the plugin should work on any systems with or without dotnet installed.

    The auto install script uses: sudo.

    This script was tested on EndeavourOS(Arch-based), but it should work on other linux systems.

    I do not take any responsibility for any kind of damage this script might cause,

    use it at your own risk.





## Installer
    download the `installer.sh` file.

    unpack it in the same directory as the other files.

    enter the next commands into the terminal:

    `sudo chmod +x installer.sh`

    `./installer.sh`

    🞄 after the script installs you should be able to use the deldir command.



## Manual-Install
    download and unpack the files.

    run in terminal:

    `sudo cp deldir /usr/bin/`

    `sudo cp deldir.pdb /usr/bin/`

    `sudo chmod +x /usr/bin/deldir`

    now you should be able to run the 'deldir' command.

## Change log:
### 1.3
    • Added a better 'tree' preview of folders and files.

    • Added a cleaner 'current' directory display.

    • Added back the 'Version' text in `-h`.

    • Updated the `installer.sh` file.

    • The plugin will now sort the files and the folders.

    • Optimized some of the source code(to be more readable).

    • Added more comments in the source code.

### 1.2
    • Fixed more issues regarding long directories not displaying properly.

    • Ported this project to use my Argument Parser 3.2 instead of 2.0.

    • Changed a bit the color scheme.

    • Optimized some of the source code(to be more readable).

    • Added more comments in the source code.

### 1.1
    • Fixed some issues regarding long directories not displaying properly.

    • Added more exceptions with new Error messages.

    • Added a 'Version' text in `-h`











This software was programmed in Visual Studio Code (.Net 6.0).
> Note: This is an early iteration of this plugin, so expect limitations with this plugin.

```diff
- created by https://github.com/000Daniel
```
Publish/Release dates: 13.01.2022