Skip to content

iamecks/files-to-delete-enumerator

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages