It's the call to FSPathMakeFSSpec that is failing with file not found. That same call works on lots of other pathnames that I have converted like any file name inside /tmp such as:
UInt8 *pathPOSIX = "tmp/filename";
It's specifying the current user's home dir in the path name that seems to be causing FSPathMakeFSSpec to fail.
~ is not substituted in the Carbon or CoreFoundation APIs (FSPathMakeFSSpec, CFURLCreateWithFileSystemPath, etc.) You need to use the POSIX glob(3) call on it first to expand it, then you can use the result(s) with the above calls. See x_man_page://3/glob
_______________________________________________
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