Strange file copy problem
Strange file copy problem
- Subject: Strange file copy problem
- From: email@hidden
- Date: Sun, 02 Jul 2006 21:51:20 +0000
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:
This email sent to email@hidden