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.
Follow these steps to install and run the project.
- .NET SDK 8.0 or later
- Clone the repository:
git clone https://github.com/your-username/file-enumerator.git
- Navigate to the project directory:
cd file-enumerator
- Restore the dependencies:
dotnet restore
- Build the project:
dotnet build
- Run the project:
dotnet run
The application prompts the user to enter a directory path and logs metadata of the files in that directory.
-
Run the application:
dotnet run
-
Enter the directory path when prompted:
Enter File/s Directory: C:\path\to\directory
This command will:
- Enumerate all files in the specified directory.
- Log their metadata (full name, name, size in MB, and last write time) to a file named
Log.txt
in theoutput
directory. - The log file will be named with a timestamp to ensure uniqueness.
- 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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.
- Xerxis Tan - @iamxerxis - iamxerxis@yahoo.com
- Project Link: https://github.com/iamecks/files-to-delete-enumerator