So I unzipped a file with 1000+ folders, is there a way to "flatten" these folders? As in, grab all the contents from every folder and dump them into another directory.
|
The easiest way is when you unzip them. If you uncheck the "preserve paths" option (it may have a different name in your zip tool), the folder structure will be ignored during the unzip process, and everything will get put into one folder. For unzip this would be the option
Edit: I must share credit for the correct answer with Takkat. The first paragraph was my answer, but the next two lines were Takkat's. |
|||||
|
|
If you already unzipped the files (and folders) try this: First open a terminal, and change directory to the folder where you wish the files to be dropped.
Then drop this in the same terminal:
This will recursively move everything in the PATHtoWHEREtheFILESare (you must provide a full path folder's name) into the current folder. Good luck! |
|||
|
|
|
If you know the file type of the folder its easy. File type means file extension.
Let assume you have One folder..... Named A which have 1000+ folder and all are full of .jpg file. You can grub all jpg at once...for that open folder A and click on search (It's up side of the window). Type your file type .jpg in the search box and press Enter . It will find all jpg from all sub folder. Then you can simply select all file by pressing Ctrl+a and cut/copy. Paste it where you want to put it. |
|||