Giter Club home page Giter Club logo

files-to-delete-enumerator's Introduction

File Enumerator and Metadata Logger

A console application that enumerates files in a given directory, logs their metadata to a history file, and provides an option to delete the files.

Table of Contents

Installation

Follow these steps to install and run the project.

Prerequisites

  • .NET SDK 8.0 or later

Steps

  1. Clone the repository:
    git clone https://github.com/your-username/file-enumerator.git
  2. Navigate to the project directory:
    cd file-enumerator
  3. Restore the dependencies:
    dotnet restore
  4. Build the project:
    dotnet build
  5. Run the project:
    dotnet run

Usage

The application prompts the user to enter a directory path and logs metadata of the files in that directory.

Example

  1. Run the application:

    dotnet run
  2. Enter the directory path when prompted:

    Enter File/s Directory: C:\path\to\directory
    

This command will:

  1. Enumerate all files in the specified directory.
  2. Log their metadata (full name, name, size in MB, and last write time) to a file named Log.txt in the output directory.
  3. The log file will be named with a timestamp to ensure uniqueness.

Features

  • Prompt the user to enter a directory path.
  • Enumerate files in the specified directory.
  • Log file metadata to a timestamped log file.
  • Create the output directory if it does not exist.

Contributing

This is a simple passion project and is currently not open for contributions. However, if you find any issues or have suggestions, feel free to open an issue on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

files-to-delete-enumerator's People

Contributors

iamecks avatar

Watchers

 avatar

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.