How do I copy folder/directory structure without copying the contents?
How do I copy folder/directory structure without copying the contents?
A lot of answers require a fair amount of command-line knowledge but this was the simplest for me and just "worked".
1. Navigate to the Parent Folder you wish to duplicate (Open Terminal, Type "cd" and then drag the source parent folder onto the Terminal. Enter, you should now see the name of the current directory listed before the $ prompt (the folder/directory that you wish to duplicate without any contents).
2. Enter this command into the Terminal:
ls -R | grep :$ | sed 's/\.\/\(.*\):$/\1/' | \
while read thisFolder; do mkdir -p “CopiedFolderStructure”/“$thisFolder"; done
You will find a Folder called "CopiedFolderStructure" inside the parent folder with all of the empty sub-folders.
I got this from here... (thank-you :-)
https://stackoverflow.com/questions/23588221/recreate-folder-structure-osx