Skip to content

Python script designed to copy files from a source folder into a destination folder which the files will be split into folders of N files.

Notifications You must be signed in to change notification settings

RaspberryProgramming/Folder-Splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Folder-Splitter

Python script designed to copy files from a source folder into a destination folder which the files will be split into folders of N files.

Requirements

Running the script

git clone https://github.com/RaspberryProgramming/Folder-Splitter

cd Folder-Splitter

Below is the help printout

usage: main.py [-h] [--filesPerFolder [FILESPERFOLDER]] [--input INPUT]
               [--output OUTPUT] [--prefix [PREFIX]] [--move [MOVE]]

Copies files from a source folder to a new destination which the files are
split into folders of N files

optional arguments:
  -h, --help            show this help message and exit
  --filesPerFolder [FILESPERFOLDER]
                        Maximum files per folder (default: 100)
  --input INPUT         Specify the input folder with all of the files.
  --output OUTPUT       Destination folder for the folders/files.
  --prefix [PREFIX]     Prefix for the folder I.E Folder = Folder-1, Folder-2,
                        etc. (default: Folder)
  --move [MOVE]         Instead of copying the files, move the files.

Example

python3 main.py --input ./input --output ./output

About

Python script designed to copy files from a source folder into a destination folder which the files will be split into folders of N files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages