Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I copy a folder strucure (only) on OSX?

Posted on 2011-02-19
6
Medium Priority
?
964 Views
Last Modified: 2012-05-11
Hi,

My first question here....

I'd like to be able to duplicate a folder structure in Finder from a source to a target, without the folder contents.

Many Thanks,
0
Comment
Question by:ajstokes
6 Comments
 
LVL 53

Expert Comment

by:strung
ID: 34938468
This freeware app might do what you want:  http://mac.softpedia.com/get/System-Utilities/Copy-folder-tree.shtml
0
 
LVL 32

Accepted Solution

by:
nappy_d earned 2000 total points
ID: 34939015
Please try this command from your OS X command line

    ~/from$ find . -type f -exec touch ~/to/{} \;

You could also use the command lndir  To see more on this command open your terminal and type "man lndir", without the quotes.
0
 

Author Comment

by:ajstokes
ID: 35045074
Hi Strung,

Thanks for your response, although this does not work as needed. I am looking for a way to copy the folder structure (without any data) from a child folder. i.e:

1. Locate the source child folder (which could also be in a hierarchy of multiple folders, but I only wish to copy it's structure)

/VOLUME/folder_one/second_folder/third_folder/source_folder

2. Folder structure is generated in new location.

This is a very simple example, however the reason for doing this is to work with folders that are sometimes 10 or 15 levels deep.
0
 
LVL 32

Expert Comment

by:nappy_d
ID: 35046263
Did you try my terminal commands? http:#34939015

The BSD terminal is more powerful than any GUI utility.
0
 
LVL 27

Expert Comment

by:Tolomir
ID: 35422516
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question