Пример #1
0
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&ixp.QTDIR == 0) {
		fmt.Fprintf(os.Stderr, "can't cd to file [%s]\n", ncwd)
		return
	}

	cwd = ncwd
}