Multi Commander > Support and Feedback

Copy files without directory structure

(1/2) > >>

karthik:
I have a root directory and a directory structure inside it. I want to copy all the files in root and its sub directories (recursively) but I do not want the folder/directory structure inside the root directory. How can I do it in MC? Thanks.

Mathias (Author):
Do a search for * at the location you want to copy from. But in the find files dialog enable attributes matching and uncheck "Directory" (Since you do not want folders in the search rersult)

And select all and copy them to target location

karthik:
How can I do this recursively for all the directories? For example, I have directories named 1, 2, 3, 4... And in each of them I have a different directory structure inside. What I want is to copy the directories named 1,2,3,4... but in the target I do not want to have the directory structure for each of the individual directories. So the target should have a directory named 1, but inside it it should only be files (recursively found from source directory 1) but no directories. I want this to be repeated for all directories 1,2,3,4... Is there a way to get it done?

Mathias (Author):
So you want to keep the main folder but not the subfolders?
Well that is such a unique senario so I dont think you can do that automatic.

I think you need to do the search thing for every folder. Maybe you can use script to automate it a bit.

karthik:
Any pointers for the script?

Navigation

[0] Message Index

[#] Next page

Go to full version