Closed DerpDays closed 2 weeks ago
I refactored the caching logic a bit because we didn't need it to be as fancy. LMK if this looks good to you and I'll merge
Looks good to me! I had kept it in the cache utility since I wasn't sure on how you'd want it, but this way is a lot easier to follow and nicer!
About
This will resolve #342, it improves the
is_modifiable
function for directories on unix systems by more accurately checking whether the user has write permission for the directory.This PR changes the function so that it:
id -G
command (gets all gid's of groups that the user is in) and checking if directory gid is in this list.Questions
id -G
is independent of directories (based on the nvim process user), I just added an extra variable to the cache module with functions to get and set it.