Skip to content

Instantly share code, notes, and snippets.

@jonasbirkelof
jonasbirkelof / !move-folders-content.md
Last active January 24, 2023 07:24
Bulk move files inside folders to a new location

Move Folders Content - Python Script

Bulk move files inside folders to a new location

About

Say you have a lot of folders containing a lot of files and you want to lift all those file up one step in the hierarchy so that they are all placed in the same folder. Doing this manually can take a long time cutting/pasting or dragging files around.

With this python script you type a base path and a target path an the script takes care of the rest.

  • BasePath: The folder containing all the sub-folders with the files.