I made a small little script that will take a large folder (possibly a large image or file directory) and breaks it into smaller folders using the first 3 letters of the filename.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
A step by step series of examples that tell you have to get a development env running
Clone the repository
git clone https://github.com/JamesSingleton/Sharding.git
Open the folder up in a text editor of your choice
You can change the source and dest file locations to your choosing. This project is setup to use the directory and folders provided.
baseDirectory = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/')
source = baseDirectory+'/Shard_Source/'
dest = baseDirectory+'/Shard_Dest/'
Lets get to sharding some folders and files
Open up your command prompt and cd into this directory
cd path/path/sharding
Run the shard.py script
python shard.py
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- James Singleton - Initial work - JamesSingleton
This project is licensed under the MIT License - see the LICENSE.md file for details