Thread-topic: HFS Alias of a Hebrew (right-to-left) POSIX pathname?
User-agent: Microsoft-Entourage/11.2.1.051004
On 26.10.2005 15:06, "Jonathan del Strother" <email@hidden>
wrote:
> I have a unix-style file path as a CFStringRef, and need the HFS
> alias for that file.
What is an HFS alias? I mean, CFURLGetFSRef() followed by FSNewAlias() is
the usual way to convert a POSIX file path into an alias.
> Works great for left-to-right pathnames, including Chinese, Japanese,
> etc. However, it falls over for Hebrew.
What exactly doesn't work, is it CFURLCopyFileSystemPath(), or something
else?
> For debugging, it would help if I could test whether Carbon thinks
> that the HFS path exists - but I can't figure out how to do that. Is
> there a FS function to test whether a file exists, given an HFS-style
> filename?
CFURLCreateWithString(), then CFURLGetFSRef(). Or FSPathMakeRef() if
that's raw bytes, not a CFString.
> Any suggestions on working with right-to-left HFS paths would be
> greatly appreciated...
Also, you can drag the file into a Terminal window to see what the system
thinks about its path.
- WBR, Alexey Proskuryakov
_______________________________________________
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