Re: Problem with setAttributesOfItemAtPath:error:

2011-03-24 Thread Laurent Daudelin
Thanks, Gary, I'll double-check. Anybody else with suggestions for "copyItemAtPath:toPath:error:" that can't copy items reliably to a remote volume mounted through AFP? Anyone? I can't believe I'm the only one on the Cocoa-Dev list that is using this method? -Laurent. -- Laurent Daudelin AIM/i

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-24 Thread Gary L. Wade
Make sure you use the do-not-traverse-symbolic-links form when constructing your FSRef for the FSSetCatalogInfo call. I do remember having to do that call in similar circumstances, which is why I was going to try FSCopyObjectAsync to see if that would solve all those issues as well as get in-pro

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 19:49, Ken Thomases wrote: > On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > >> I actually looked at FSMegaInfo but when I built it, I realized that it was >> using a lot of deprecated functions in 10.6 so I decided against using any >> part of it because of the amoun

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 19:49, Ken Thomases wrote: > On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > >> I actually looked at FSMegaInfo but when I built it, I realized that it was >> using a lot of deprecated functions in 10.6 so I decided against using any >> part of it because of the amoun

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Ken Thomases
On Mar 23, 2011, at 7:37 PM, Laurent Daudelin wrote: > I actually looked at FSMegaInfo but when I built it, I realized that it was > using a lot of deprecated functions in 10.6 so I decided against using any > part of it because of the amount of work that would be required to rewrite > some par

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
On Mar 23, 2011, at 16:38, Ken Thomases wrote: > On Mar 23, 2011, at 6:17 PM, Laurent Daudelin wrote: > >> I've been using NSFileManager "copyItemAtPath:toPath:error:" and it >> generally works well. However, when trying to copy files from a local folder >> to a folder on a remote volume, "copy

Re: Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Ken Thomases
On Mar 23, 2011, at 6:17 PM, Laurent Daudelin wrote: > I've been using NSFileManager "copyItemAtPath:toPath:error:" and it generally > works well. However, when trying to copy files from a local folder to a > folder on a remote volume, "copyItemAtPath:toPath:error:" will sometimes > fails to se

Problem with setAttributesOfItemAtPath:error:

2011-03-23 Thread Laurent Daudelin
I'm writing an application that copies files from one folder to another. I've been using NSFileManager "copyItemAtPath:toPath:error:" and it generally works well. However, when trying to copy files from a local folder to a folder on a remote volume, "copyItemAtPath:toPath:error:" will sometimes