Giter VIP home page Giter VIP logo

md-owes / directory-deleter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.03 MB

This tool is developed to assist mainly developers and testers who run into frequent problem of deleting temporary artifacts. Using this tool, you can create profiles of frequently deleted locations and folders to delete.

License: GNU General Public License v3.0

C# 97.83% PowerShell 2.17%
file-delete tool utility directory-and-file-delete directory-delete directory-delete-tool folder-delete delete delete-directory delete-files

directory-deleter's Introduction

directory-deleter

This tool is developed to assist mainly developers and testers who run into frequent problem of deleting temporary artifacts. Using this tool, you can create profiles of frequently deleted locations and folders to delete.

PreRequisites

The following pre-requisites have to be installed or configured before running this tool

  • Ensure you have dotnet 7 SDK and above (latest stable dotnet sdk is preferable)

To work on this tool you need to

  • Ensure you have .Net MAUI workload installed
    • run the below command which will install maui if not installed already
      dotnet workload install maui
      
    • If using Visual Studio Code then the C# Dev Kit extension is required which will add the build and run pipelines

Installation

For MacOS, use the package file named directory-deleter-v{VERSION}.pkg, for Windows server use the exe directory-deleter-v{VERSION}.exe and for Windows 10 & 11 use the msix file directory-deleter-v{VERSION}.msix

To install directory-deleter on Windows 10 & 11, you need to install the public key certificate first. The certificate is named directory-deleter.cer and it should be installed in Trusted People as mentioned in Microsoft documentation for store apps

To enable logging of issues in directory-deleter

  • On Mac, you need to execute the following command in terminal
    launchctl setenv DD_EnableLogs 1
    
  • On windows, you need to set system environment variable either manually or via below command
    setx DD_EnableLogs "1" /M
    

Now you will see a new file created at the following locations

  • On Mac, file named directory-delete.log will appear in /Users//Library
  • On Windows, file named directory-delete.log
    • if it is exe then location will be C:\Users<username>\AppData\Roaming<username>\c5a240f0-6866-4aa3-8d34-9c682b0cf217\Data
    • If it is msix then location will be C:\Users<username>\AppData\Local\Packages\c5a240f0-6866-4aa3-8d34-9c682b0cf217_\LocalState

Note: On Windows the log location will have a static GUID (c5a240f0-6866-4aa3-8d34-9c682b0cf217) in its path, this GUID is a hardcoded GUID for this app and can change in future.

After changing the value of environment variable, you need to close and open the app again for changes to take effect.

Usage/Examples

Enter the required information

Save as a profile

Clear out filled details

Load saved profile

Tech Stack

Application: Dotnet MAUI with C# language

Authors

Contributing

Contributions are always welcome! Shoot a mail if you would like to become a contributor.

License

GPLv3

directory-deleter's People

Contributors

md-owes avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

directory-deleter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.