Code Monkey home page Code Monkey logo

file-format-separator's Introduction

File Organizer

Overview

This Python script provides a convenient way to organize files in a specified input folder. It categorizes files into subfolders based on their formats, facilitating a more structured storage system. Additionally, it efficiently handles files with unsupported formats, grouping them into a designated "OtherFormats" folder.

Features

  • Format Categories: The script classifies files into various format categories, including Photos, Videos, Documents, and RawPhotos, based on their extensions.
  • Customization: Easily customize the script by modifying the format_categories dictionary to include additional formats or create new categories.
  • Efficient Organization: Subfolders corresponding to each format category are created within the input folder, promoting a neat and organized directory structure.
  • Fallback Folder: Files with unsupported formats are moved to an "OtherFormats" folder, preventing clutter and ensuring no file is left unorganized.

Usage

  1. Replace your/local/folder/path with the actual path to your target folder in the input_folder variable at the end of the script.
  2. Run the script, and it will automatically organize the files within the specified folder.

Example

Suppose you have a folder with mixed-format files:

your/local/folder/path |-- image1.jpg |-- document.pdf |-- video.mp4 |-- rawfile.arw |-- script.py

After running the script, the folder structure will be transformed into:

your/local/folder/path |-- Photos_image1.jpg |-- Documents_document.pdf |-- Videos_video.mp4 |-- RawPhotos_rawfile.arw |-- OtherFormats_script.py

Now, your files are grouped according to their respective categories for a cleaner and more manageable file system.

Contributing

  • Contributions are welcome! Feel free to open issues, submit feature requests, or create pull requests to enhance the functionality of the script.

file-format-separator's People

Contributors

khchuang12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.