Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSFindFolder problem



On 1/31/05 4:06 AM, Jan E. Schotsman didst favor us with:

> 
> On 31-jan-05, at 0:26, daniel wrote:
> 
>> 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).

Have you tried getting the file's parent dirID and vRefNum and using
IdentifyFolder()?

Larry

 _______________________________________________
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

This email sent to email@hidden

References: 
 >Re: FSFindFolder problem (From: "Jan E. Schotsman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.