Solved

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

Posted on 2011-02-19
6
951 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 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now