https://github.com/wilsonsouto/file-organizer
Automates file organization by sorting them into folders based on their extensions.
https://github.com/wilsonsouto/file-organizer
csharp script
Last synced: over 1 year ago
JSON representation
Automates file organization by sorting them into folders based on their extensions.
- Host: GitHub
- URL: https://github.com/wilsonsouto/file-organizer
- Owner: wilsonsouto
- License: mit
- Created: 2025-02-06T23:03:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T00:16:22.000Z (over 1 year ago)
- Last Synced: 2025-03-09T03:09:12.839Z (over 1 year ago)
- Topics: csharp, script
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
File Organizer



About |
Features |
Technologies |
Requirements |
Starting |
License |
Author
## :dart: 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.
## :sparkles: Features
:heavy_check_mark: **Reading Files**: The code reads files from the specified source directory.\
:heavy_check_mark: **Filtering by Extension**: Filters files in the source directory based on extensions in the extensions object.\
:heavy_check_mark: **Moving Files**: Moves files to corresponding folders (documents, pictures, videos) based on their extension.\
:heavy_check_mark: **Error Handling**: Uses try...catch to capture errors, ensuring a more reliable process.
## :rocket: Technologies
The following tools were used in this project:
- .NET 8.0
- C#
## :white_check_mark: Requirements
Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) and [.NET SDK](https://dotnet.microsoft.com/en-us/download) installed.
## :checkered_flag: Starting
```bash
# Clone this project
$ git clone https://github.com/wlsonsouto/file-organizer
# Access the project folder
$ cd file-organizer/FileOrganizer
# Open Configuration.cs and update the paths below to match your local directories
public const string Source = @"C:\YOUR-PATH\Downloads";
public const string Documents = @"C:\YOUR-PATH\Documents";
public const string Pictures = @"C:\YOUR-PATH\Pictures";
public const string Videos = @"C:\YOUR-PATH\Videos";
# Run the project
$ dotnet run
```
## :memo: License
This project is under license from MIT. For more details, see the [LICENSE](LICENSE) file.
Made with :heart: by [wilsonsouto](https://github.com/wilsonsouto)