For Unix, don't return "." ".." or any file/directory that begins with a "."! Perhaps we should really end up having a preference that determines whether to return these "hidden" items or not.

git-svn-id: svn://10.0.0.236/trunk@45146 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com
1999-08-30 11:40:29 +00:00
parent 69b50f0cc4
commit a744f7636b

View File

@@ -191,7 +191,10 @@ PRBool nsFileSpec::IsHidden() const
char *leafname = GetLeafName();
if (nsnull != leafname)
{
if ((!strcmp(leafname, ".")) || (!strcmp(leafname, "..")))
// rjc: don't return ".", "..", or any file/directory that begins with a "."
/* if ((!strcmp(leafname, ".")) || (!strcmp(leafname, ".."))) */
if (leafname[0] == '.')
{
hidden = PR_TRUE;
}