Skip to content

Automates file organization by sorting them into folders based on their extensions

License

Notifications You must be signed in to change notification settings

wilsonsouto/file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 

File Organizer

Github top language Github language count Repository size License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


🎯 About

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.

✨ Features

✔️ 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;

🚀 Technologies

The following tools were used in this project:

  • .NET 8.0
  • C#

✅ Requirements

Before starting 🏁, you need to have Git and .NET SDK installed.

🏁 Starting

# 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

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by wilsonsouto

 

Back to top

About

Automates file organization by sorting them into folders based on their extensions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages