Another filesystem mystery
Another filesystem mystery
- Subject: Another filesystem mystery
- From: email@hidden
- Date: Mon, 25 Feb 2002 21:37:08 -0800
Boy, filtering files for the open panel is turning out to be a good
deal harder than I had expected. :->
I've just bumped into the problem that
-stringByResolvingSymlinksInPath doesn't resolve alias files, and that
such alias files then say they are files even if they point to
directories. Apparently I need to resolve such aliases by hand. I've
just logged a bug that Cocoa ought to make this issue more or less
completely invisible, at least when -stringByResolvingSymlinksInPath is
used. Sigh.
So after an hour or so searching the archives for every relevant
keyword I could think of, I found only one small snippet of actual
example code that is written to handle this, and there are big caveats
attached to it that it's untested, etc. Does anybody have known good
code they would be willing to share? I'm hoping for an NSString
category like -stringByResolvingSymlinksAndAliasesInPath, but anything I
can massage into that form myself would be welcome.
Please reply directly to me, I'll post the best code I get (or
write :->) to the list later. Thanks!
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.