• 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
FSCopyObjectSync() failing to overwrite on 10.6?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FSCopyObjectSync() failing to overwrite on 10.6?


  • Subject: FSCopyObjectSync() failing to overwrite on 10.6?
  • From: Jo Meder <email@hidden>
  • Date: Tue, 26 Oct 2010 13:48:10 +1300

Hi,

I'm using FSCopyObjectSync() to copy a file and want it to overwrite the destination file if it exists. However I've discovered this isn't working on 10.6. I'm getting error -48 which is the duplicate filename error. Fair enough, I'm trying to copy and overwrite a file with the same name, but I do set the kFSFileOperationOverwrite flag! It's working fine on 10.4 and 10.5.

Has anyone else seen these problems? I did a search and found someone mentioned this bug recently:

7102368 - FSCopyObjectSync ignores kFSFileOperationOverwrite

which I presume is the same issue.

Are there any workarounds aside from deleting the destination file first if it exists?

Regards,

Jo Meder_______________________________________________

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

  • Prev by Date: Re: Audio Streaming with Cocoa
  • Next by Date: Re: Few binaries in one application's Bundle
  • Previous by thread: Re: Few binaries in one application's Bundle
  • Next by thread: Mapping APIs for use in Cocoa app
  • Index(es):
    • Date
    • Thread