Giter Site home page Giter Site logo

file_organizer's Introduction

File Organizer πŸ“‚βœ¨

Overview 🌟

This script organizes files based on their categories within a specified target directory. It creates a new directory [target_folder_name]_organized in a more organized way.
THIS DOES NOT ALTERN the files to be sorted

Directory Details

  • First, based on filenames, send files into given manually defined bins (preset: ['core', 'cover', 'logo'),
target_directory/
└── target_directory_organized/
   β”œβ”€β”€ core/
   β”œβ”€β”€ cover/
   β”œβ”€β”€ logo/
   └── other/

-within /other, all files put into bins that share common first word. e.g ElecEngineer.stl, ElecBox.stl are put into the same dir Elec Final dir tree

target_directory/
└── target_directory_organized/
    β”œβ”€β”€ core/
    β”œβ”€β”€ cover/
    β”œβ”€β”€ logo/
    └── other/
        β”œβ”€β”€ A/
        β”œβ”€β”€ B/
        β”œβ”€β”€ C/
        ...

Simple Usage (organize all .stl)πŸš€

drop this file ONE directory above the directory you want to sort.
run

cd YOUR_STL_DIRECTORY; python PATH_TO_SCRIPT/file_organizer.py

Targeted Usage🎯

drop this file ONE directory above the directory you want to sort.
run

python file_organizer.py -d [target_directory] -e [file_extension]
Arguments

Arguments πŸ“œ

  • -d, --target_dir: The path to the directory containing the files to be organized.
  • -e, --extension: The file extension to organize. If not specified, all files will be organized.

Contact πŸ“«

Frank Hu [email protected]

file_organizer's People

Contributors

tianyaohu 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.