• 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
Copying files from mounted volumes doesn't work.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying files from mounted volumes doesn't work.


  • Subject: Copying files from mounted volumes doesn't work.
  • From: Michael Becker <email@hidden>
  • Date: Mon, 7 Jun 2004 13:20:34 +0200

Hello!

It seems like NSFileManager won't copy any paths if the source path is on a mounted volume. Here's my line of code:

BOOL success = [ _fileManager copyPath:srcPath toPath:destPath handler:nil];

It works fine until I get a srcPath similar to "/volumes/testvolume/image.jpg". As soon as I try to copy from any mounted volume (be it a Network or a DMG or whatever), 'success' will become 'NO'.

Strangely, "volumes" starts with a lower case v although the actual directory name starts with a capital V (I get the srcPath after dragging and dropping a file). I noticed that the Terminal.app obviously won't care... :-)

Might that be the reason for the failure? How would I fix that?

Greetings,
Michael
_______________________________________________
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.


  • Prev by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Next by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: Re: itunes style expanding text field
  • Next by thread: Re: Copying files from mounted volumes doesn't work.
  • Index(es):
    • Date
    • Thread