func walkone(c *clnt.Clnt, s string, fileok bool) { ncwd := normpath(s) fid, err := c.FWalk(ncwd) defer c.Clunk(fid) if err != nil { fmt.Fprintf(os.Stderr, "walk error: %s\n", err) return } if fileok != true && (fid.Type&go9p.QTDIR == 0) { fmt.Fprintf(os.Stderr, "can't cd to file [%s]\n", ncwd) return } cwd = ncwd }