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: Wed May 14 07:59:38 CEST 2025
Total time taken to generate the page: 0.00941 seconds
|