On Saturday 06 August 2005 13:54, Luke Sandell wrote:
> On Friday, August 5, 2005 7:18 pm, Tobi Vollebregt wrote:
> > I've created the attached *untested* patch which adds UDS_HIDDEN to =


> > the UDSAtomTypes. With UDS_HIDDEN it is possible to override the
> > default behaviour of treating only dotfiles (leading dot) as hidden
> > files.


I like the patch. If you test it, I commit it

Ah, there's at least one bug:
&& m_bLink =3D=3D item.m_bLink
+ && m_hidden =3D=3D m_hidden
the latter should be item.m_hidden

A naming suggestion:
+ enum { Auto =3D 0, Hide =3D 1, Show =3D 2 };
should be Hidden and Shown, I think?

> Very intersting. You may want to take a look at my patch on =


> http://bugs.kde.org/show_bug.cgi?id=3D3212 which was never noticed by any =


> developers but adds the option to hide files based on a glob patterns ins=

tead =

> of just dotfiles. This is against KFileDialog & KDirLister rather than KI=

O =

> though.


This is less generic though, at least from an ioslave point of view. We see=
more =

and more kioslaves coming up, going higher and higher in terms of abstracti=
on
of filesystems. UDS_HIDDEN is a way to abstract yet another feature: which =
items
are hidden (by default).

> > Another use
> > would be actual hiding of supposed-to-be-hidden FAT files.

> =


> This is a good idea- but it could cause some confusion among users who on=

ly =

> expect only dotfiles to be hidden. I also don't know if UNIX drivers even =


> support reading the "hidden" attribute from FAT filesystems.


I don't know either, but it doesn't sound like a bad idea to me.

-- =

David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<