Determining if a file is hidden?
Determining if a file is hidden?
- Subject: Determining if a file is hidden?
- From: Matt Margush <email@hidden>
- Date: Wed, 31 Dec 2003 14:57:55 -0800
Hi,
Is there a way to determine if a file is hidden with the Cocoa APIs?
What I'm looking for are files that would not be considered hidden by
the Finder when the "AppleShowAllFiles" defaults setting is set to
false. I have looked at the NSFileManager and NSWorkspace classes but
can't find anything like that. I guess the "hidden-ness" of a file
might be function of the user interface, and not an attribute of the
file itself. However, I was wondering if there is a way to determine
this from a Cocoa api. For example, in Java, the the method
java.io.File.isHidden() returns true in a fairly platform independent
manner... on unix platforms it checks if the filename starts with a
'.', on windows it checks the hidden attribute of the file itself.
Thanks,
Matt
--
It is reasonable to ask what is the ideal, and indeed this question
leads to progress.
[demime 0.98b removed an attachment of type text/directory which had a name of Matt Margush.vcf]
_______________________________________________
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.