• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copying folder structures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Copying folder structures
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Copying folder structures (From: Kurt Klamp <email@hidden>)
 >Re: Copying folder structures (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Copying folder structures
  • Next by Date: Re: Copying folder structures
  • Previous by thread: Re: Copying folder structures
  • Next by thread: Re: Copying folder structures
  • Index(es):
    • Date
    • Thread