About | Features | Technologies | Requirements | Starting | License | Author
This script organizes files by extension, saving time and reducing manual effort. It scans a source directory, categorizes files into groups like documents, images, and videos, and moves them into corresponding folders. With built-in error handling, it ensures a smooth and efficient process.
✔️ Reading Files: The code reads files from the specified source directory;
✔️ Filtering by Extension: Filters files in the source directory based on extensions in the extensions object;
✔️ Moving Files: Moves files to corresponding folders (documents, pictures, videos) based on their extension;
✔️ Error Handling: Uses try...catch to capture errors, ensuring a more reliable process;
The following tools were used in this project:
- .NET 8.0
- C#
Before starting 🏁, you need to have Git and .NET SDK installed.
# Clone this project
$ git clone https://github.com/wlsonsouto/file-organizer
# Access
$ cd file-organizer/FileOrganizer
# Open Program.cs and update the paths below to match your local directories:
private const string Source = @"C:\YOUR-PATH\Downloads";
private const string Documents = @"C:\YOUR-PATH\Documents";
private const string Pictures = @"C:\YOUR-PATH\Pictures";
private const string Videos = @"C:\YOUR-PATH\Videos";
# Run the project
$ dotnet run
This project is under license from MIT. For more details, see the LICENSE file.
Made with ❤️ by wilsonsouto