NSFileManager's error dictionary
NSFileManager's error dictionary
- Subject: NSFileManager's error dictionary
- From: Larry Fransson <email@hidden>
- Date: Fri, 23 Apr 2004 17:11:57 -0700
I think there's a bug here, but maybe it just doesn't work like it
seems it should, which is something pretty close to a bug. Here's the
story:
I'm using NSFileManager's -movePath:toPath:handler to move a file from
one place to another. It all works great if the file doesn't already
exist at the destination. If it does, then
-fileManager:shouldProceedAfterError: gets called. The error
dictionary contains the value "Already Exists" for the key "Error".
But the other entry in the dictionary is the source path for the key
"Path". There isn't an entry for the key "ToPath", but I would expect
one in the case of a file already existing at the destination. I know
there's a file already at the source - that's the one I want to move!
I can certainly work around this - a bunch of formerly local variables
have to become instance variables - but this doesn't seem like the way
it should work.
So is it a bug, or do I just have a major misunderstanding of how it
should work?
Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.