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: Getting the current user dir in Carbon



At 22:02 Uhr -0800 15.11.2004, OL&L Lists wrote:
This may be a newbie question, but how do I specify the current user directory using a POSIX-style pathname in Carbon? I need to delete a directory directly inside the current user directory so I need to make a fixed path as a POSIX pathname string and then convert it to an FSRef.

In Carbon, you might want to use:

(FS)FindFolder( kAnyDomain, kCurrentUserFolderType... ) to get the folder FSRef,
FSMakeFSRef et al. to get the FSRef of the subfolder,
and either part of the MoreFiles sample code or a selfwritten routine to either delete the files or (recommended) move the folder to the result folder of FindFolder( <Disk ID of Userfolder>, kTrashFolderType );


Regards,
	Tom_E


_______________________________________________ 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: 
 >Getting the current user dir in Carbon (From: OL&L Lists <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.