Skip to content

Instantly share code, notes, and snippets.

@atindra50
atindra50 / folder_splitter.py
Created August 14, 2021 03:31 — 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
import argparse
import os
import shutil
N = 10 # the number of files in seach subfolder folder