Re: How do I know if a file is a system link?
Re: How do I know if a file is a system link?
- Subject: Re: How do I know if a file is a system link?
- From: "Alan Smith" <email@hidden>
- Date: Sun, 13 Aug 2006 21:51:00 -0400
Yes That worked fine. I didn't realize it was a C function so I had
tried it in the Terminal and it sad command not found. DUH!
For the record here is my code:
#include <sys/types.h>
#include <sys/stat.h>
struct stat linkstat;
if (lstat([path UTF8String], &linkstat) != -1);
{
if (S_ISLNK(linkstat.st_mode))
{
NSLog(@"it's a link");
}
}
Works great! Thanks Rosyna!
Peace all, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden