U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » [REQUEST] IsHidden for POSIX platforms
[REQUEST] IsHidden for POSIX platforms [message #20894] Thu, 16 April 2009 12:06 Go to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Recently I expected to find IsHidden() in FindFile class also for POSIX platforms.
I expected it to return true for all files starting with a dot:

bool IsHidden() const { return name[0] == '.'; }

I know this is once again a tiny addition, but it feels natural to me instead of missing IsHidden method.

Matthias
Re: [REQUEST] IsHidden for POSIX platforms [message #20895 is a reply to message #20894] Thu, 16 April 2009 12:19 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
masu wrote on Thu, 16 April 2009 06:06

Recently I expected to find IsHidden() in FindFile class also for POSIX platforms.
I expected it to return true for all files starting with a dot:

bool IsHidden() const { return name[0] == '.'; }

I know this is once again a tiny addition, but it feels natural to me instead of missing IsHidden method.

Matthias


Well, while I am not sure I agree 100% (because while in Win32, it is system defined attribute, in POSIX it is only widely used convention...), I think adding this will not hurt anything.

Applied.

Mirek
Previous Topic: problem with system() under windows [SOLVED]
Next Topic: MSC problems: pick_ != const
Goto Forum:
  


Current Time: Mon May 04 06:17:46 GMT+2 2026

Total time taken to generate the page: 0.00502 seconds