• 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
Re: Strange file copy problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange file copy problem


  • Subject: Re: Strange file copy problem
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Sun, 2 Jul 2006 15:01:23 -0700


On Jul 2, 2006, at 14:51, email@hidden wrote:

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?

I've used it across volumes.

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

Use the handler parameter to supply an object that implements fileManager:shouldProceedAfterError: and investigate the error.


Adam

_______________________________________________
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


References: 
 >Strange file copy problem (From: email@hidden)

  • Prev by Date: Strange file copy problem
  • Next by Date: Re: Strange file copy problem
  • Previous by thread: Strange file copy problem
  • Next by thread: Re: Strange file copy problem
  • Index(es):
    • Date
    • Thread