Re: Copying folder structures
Re: Copying folder structures
- Subject: Re: Copying folder structures
- From: Skeeve <email@hidden>
- Date: Sat, 22 Dec 2007 22:57:17 +0100
Mark J. Reed wrote:
Here's one way to do it via the shell:
do shell script "(cd " & quoted form of POSIX path of sourceFolder &
"&& find . -type d print0) | (cd " & quoted form of POSIX path of
destFolder & "&& xargs -0 mkdir -p)"
That does NOT copy.
1. No Ownership
2. No Permissions
If you want to copy the shell script can look like this:
cd sourcedir ; ( find . -type d -print0 | xargs -0 tar cBpf - ) | ( cd
targetdir ; tar xBpf - )
Note: It sems to copy .dmg files too. Didn't check why and how to omit them
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden