@Martin, could you think this is also possible "http://forums.codeblocks.org/index.php/topic,11295.0.html" ?
I think this is possible. However, I am not sure if we all agree to do that. As of now we don't modify any attributes at all as they may have a reason. So we assume the file's state is simply set. This is a philosophy we followed so far. What you are suggesting can be really erroneous for these reasons:
- There is no wxWidgets support for doing any file manipulation like that. So we need to implement this ourselves for all platforms.
- However, wxWidgtes support is planned but just not implemented, so most likely we have to change it at a later time.
- What happens if the user does not have the right to change the file's attributes or if they are "virtual" like on network shares under Windows?
- What if these are not files, but links (symlinks)?
- What about user/group/admin rights under Linux/Unix? What flag (file mask) to set exactly?
So - you see: It's easier to leave all that decision to the user and it's favourite file manager. The user
knows the state of the file, the permissions and file operations possible to do (on the platform/OS). C::B would need to trial-and-error all the time and we would need to implement quite a complex logic and nearly a tiny file explorer. Still from my daily use I see the benefit as I stumble across this nearly every day. I also see this as a nice feature for the file manager plugin. Maybe it fits better there...
So - I'd like to hear Yiannis words on that.
Ps: That's why I provide this functionality as a patch only btw... not appied to trunk and open for discussion.