Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua Temple jltemple

  • Netherlands
View GitHub Profile
@jltemple
jltemple / folder_splitter.py
Last active Dec 15, 2015 — forked from zupo/folder_splitter.py
Split a folder with many files into subfolders with N files.Usage: python folder_splitter.py path/to/target/folder
View folder_splitter.py
# Modifying folder_splitter.py orginally made by Peter Lamut to move a files into a directory tree based on their last 4 characters
# Similar problem and solves this issue: http://serverfault.com/questions/95444/storing-a-million-images-in-the-filesystem
# EBES06281R0.xml will be moved to /81/r0/EBES06281R0.xml
#
# Original: https://gist.github.com/zupo/5849843
import argparse
import os
import shutil
You can’t perform that action at this time.