lorenzosaino / go-sysctl

Go wrapper around the sysctl interface
BSD 3-Clause "New" or "Revised" License
53 stars 9 forks source link

skip write only files #5

Closed ruizhe closed 2 years ago

ruizhe commented 2 years ago

skip write only files, for example:

ls -l /proc/sys/fs/binfmt_misc/register

--w------- 1 root root 0 Oct 27 2021 /proc/sys/fs/binfmt_misc/register It would interrupt filepath.Walk.