• 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
Safe asynchronous file copies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safe asynchronous file copies


  • Subject: Safe asynchronous file copies
  • From: Pierre Bernard <email@hidden>
  • Date: Sat, 17 Nov 2007 21:25:42 +0100

Hi!

I am looking for a way to safely copy or move several files to a single destination folder.

- Safe: I want it to check bevor overwriting existing files
- Smart: If I copy two files of the same name at the same time, I want both files to exist at destination with their names suffixed by a counter
- Asynchronous: No beachball, but a progress bar
- Support resource forks, attributes, ...
- Bonus: authentication if needed


I see no Cocoa API living up to the task. NSFileManager/NSWorkspace only provide the building blocks. One would need to pour in quite some effort to wrap them with the above features.

The Finder does all this and has an interface familiar to the user. AppleScript might be the way to go. My AppleScript knowledge is very limited. I am not actually sure the Finder exposes these features to AppleScript. I don't even know how to pass a list of file paths to Apple Script.

Is there a Carbon API to do this?

Has anyone else been down this road?

Pierre

---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.com



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Safe asynchronous file copies
      • From: Dave Hersey <email@hidden>
  • Prev by Date: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Next by Date: Re: (Solved) Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Previous by thread: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Next by thread: Re: Safe asynchronous file copies
  • Index(es):
    • Date
    • Thread