| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi I'm sure this is an easy one but it has me temporarily stumped. I'm trying to copy a file from a Windows server to a folder on the user's desktop but NSFileManager's copyPath:toPath:handler method won't do it. The strange thing is that I can open the file on the server and I can also write files to the exact path I want to copy to (such as writing a dictionary with [dict writeToFile: path atomically YES]) but no go on copying from the server to that path. Does NSFileManager's copy method work cross-volume? Here are two example paths for reference sourcePath = @"/volumes/Windows Server/a folder/a subfolder/source_file_name" destPath = @"/users/a_user/desktop/a folder/dest_file_name [[NSFileManager defaultManager] copyPath: sourcePath toPath: destPath handler: nil]; Result: copy fails Any help appreciated Ken _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.