08-02-2009, 08:15 PM
I just tried it and it worked.
I made 2 directories in a folder on my Desktop and filled one directory with 3 folders, each folder containing a file.
I then opened the Terminal and navigated to the first folder.
I typed this code at the prompt:
find . -type d | cpio -pvdm
Putting a space after the "-pvdm," I then dragged the folder-icon for the second directory onto the Terminal window and hit the Return key.
It copied the subdirectories without copying the files.
I made 2 directories in a folder on my Desktop and filled one directory with 3 folders, each folder containing a file.
I then opened the Terminal and navigated to the first folder.
I typed this code at the prompt:
find . -type d | cpio -pvdm
Putting a space after the "-pvdm," I then dragged the folder-icon for the second directory onto the Terminal window and hit the Return key.
It copied the subdirectories without copying the files.