An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

 

File Organizer


Github top language

Github language count

Repository size

License


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)

 

Back to top