It looks like this return code is properly documented in the
FindFolder documentation but not in the FSFindFolder equivalent:
The result code dupFNErr indicates that a file has been found instead
of a folder.
Note that this could be caused by either the indicated folder or any
parent of the indicated folder being a file instead of a folder.
Though for the Trash it's usually a pretty shallow search.
By the way, it's probably better not to pass kUserDomain to
FindFolder. Usually you are looking for the Trash because you want to
throw something away, and in that case, you should ask for the trash
by volume. If the item you're throwing away is on the user's disk,
then will happen to get the trash folder in the user's home directory.
I just want to check if the file is in the trash (same reasoning
applies of course).
Anyway, this return code means the user's file system is corrupt, right?
Jan.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden