Copying files from mounted volumes doesn't work.
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.