Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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 Apr 29 13:04:40 CEST 2024

Total time taken to generate the page: 0.02206 seconds