• 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: copyPath:toPath:handler: sometimes it works, sometimes it does not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?


  • Subject: Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 25 Mar 2004 17:55:01 +0100

Le jeudi, 25 mar 2004, ` 17:36 Europe/Paris, Fritz Anderson a icrit :

I have had the same problem under 10.3.2 -- an inexplicable "Couldn't create directory" when duplicating a directory using -[NSFileManager copyPath:toPath:handler:]. In my case, there were no colons or other special characters in the file path.

I worked around it by substituting -[NSWorkspace performFileOperation:source:destination:files:tag:].

This was with user privileges, copying to a subdirectory of /tmp, in all cases.

The workaround I selected is to use the FSCopyObject sample code from Apple Web Site.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: copyPath:toPath:handler: sometimes it works, sometimes it does not? (From: Fritz Anderson <email@hidden>)

  • Prev by Date: NSURL and lingering FTP processes
  • Next by Date: Re: Finder "like" NSView,
  • Previous by thread: Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
  • Next by thread: Fullscreen enter/exit notification
  • Index(es):
    • Date
    • Thread