code: func makeAccessible(path string, uid, gid int) error {
  	for ; path != "/"; path = filepath.Dir(path) {
  		st, err := os.Stat(path)
  		if err != nil {
  			if os.IsNotExist(err) {
  				return nil
  			}
  			return err
  		}
  		if int(st.Sys().(*syscall.Stat_t).Uid) == uid && int(st.Sys().(*syscall.Stat_t).Gid) == gid {
  			continue
  		}
  		if st.Mode()&0111 != 0111 {
  			if err := os.Chmod(path, st.Mode()|0111); err != nil {
  				return err
  			}
  		}
  	}
  	return nil
  }
docs: // makeAccessible changes the path permission and each parent directory to have --x--x--x