Skip to content

Instantly share code, notes, and snippets.

View ace139's full-sized avatar
🏠
Working from home

Soumyo Dey ace139

🏠
Working from home
View GitHub Profile
@ace139
ace139 / folder_splitter.py
Last active April 20, 2017 11:14 — 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
# -*- coding: utf-8 -*-
# @author: Peter Lamut
# Modified to use in Python 3 by @ace139
import argparse
import os
import shutil
N = 10 # the number of files in seach subfolder folder