GNOME Bugzilla – Bug 753969
check if a folder is accessible
Last modified: 2015-08-23 20:46:52 UTC
When saving, if the user enters /root/file.txt we show the replace confirmation dialog. Instead we should see that /root/ is not accessible at all and present an error to the user. This came up in relation to https://bugzilla.gnome.org/show_bug.cgi?id=753932 Btw, I can also submit a gtk patch move the check to see if the file is readonly instead of having it custom in gedit
Created attachment 309868 [details] [review] patch Note: if you test with gedit, you will need to rebuild it since I committed a related patch there
A couple of notes: - the patch is only lightly tested at the moment (I just checked the case of bug 753932) - I assumed that the "access::can-execute" has the same semantic of the "x" bit in unix for directroy... I am not sure if that is the case or if that breaks on windows and remote file systems
Review of attachment 309868 [details] [review]: Works well enough for me, thanks! If you commit this, please announce the string addition
We checked with LRN and it seems we are ok on Windows. I pushed the patch and sent the string change mail. I'll file another bug for the patch porting the read-only check from gedit