I am taking backup/sync files in my computer to external harddisk.
for example I sorted some files in my external harddisk like this (I have around 1000 directories and 10000 files, Directory structure below given is for illustrative purpose only)
folderA
-aa.jpg
-ab.mp3
-ac.mp4
folderB
-ba.jpg
-bb.mp3
-bc.mp4
and in my computer I have same files in a folder "temp"
aa.jpg, ab.mp3, ac.mp4, ba.jpg, bb.mp3, bc.mp4
Where I have
I want files in "temp" to be arranged like this
temp
--folderA
-aa.jpg
-ab.mp3
-ac.mp4
--folderB
-ba.jpg
-bb.mp3
-bc.mp4
Is there any tool, or script to do this for me (for 1000+ directories and 10000+ files)?