FROM : kentozier
DATE : Sun Jul 02 23:51:20 2006
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
DATE : Sun Jul 02 23:51:20 2006
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
| Related mails | Author | Date |
|---|---|---|
| kentozier | Jul 2, 23:51 | |
| Adam R. Maxwell | Jul 3, 00:01 | |
| kentozier | Jul 3, 00:22 | |
| Uli Kusterer | Jul 3, 11:28 |






Cocoa mail archive

