Home » U++ Library support » U++ Core » FindFile::IsExecutable() [Feature request]
FindFile::IsExecutable() [Feature request] [message #25685] |
Sun, 07 March 2010 21:51 |
|
Hello,
Would it be possible to add IsExecutable() method to FindFile? Implementation is quite simple, for Linux: bool FindFile::IsExecutable() const { return (!IsDirectory()) && ((S_IXUSR|S_IXGRP|S_IXOTH) & GetMode());} And for windows (this could be optimized):bool FindFile::IsExecutable() const { return ToLower(GetName()).EndsWith(".exe"); }
What do you think?
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri May 10 23:46:06 CEST 2024
Total time taken to generate the page: 0.02992 seconds
|