func sattrWdir(sattr *fuse.SetattrRequest) (wdir *rh.Wdir) {
	//
	var valid = sattr.Valid
	switch {
	case valid.Uid(), valid.Atime():
		// ignore
	}
	//
	wdir = &rh.Wdir{}
	if valid.Mode() {
		var mp = rhunix.UnixMode(sattr.Mode).RH()
		wdir.Perm = &mp.Perm
	}
	if valid.Mtime() {
		var mtime = sattr.Mtime
		wdir.Mtime = &mtime
	}
	if valid.Gid() {
		wdir.Gid = strconv.Itoa(int(sattr.Gid))
	}
	if valid.Size() {
		var l = int64(sattr.Size)
		wdir.Length = &l
	}
	return
}
// sattrWdir converts a fuse.SetattrRequest into a rh.Wdir
sattrWdir converts a fuse.SetattrRequest into a rh.Wdir
// sattrWdir converts a fuse . SetattrRequest into a rh . Wdir
func sattrWdir(sattr *fuse.SetattrRequest) (wdir *rh.Wdir) {
	var valid = sattr.Valid
	switch {
	case valid.Uid(), valid.Atime():
		 ignore
	}
	wdir = &rh.Wdir{}
	if valid.Mode() {
		var mp = rhunix.UnixMode(sattr.Mode).RH()
		wdir.Perm = &mp.Perm
	}
	if valid.Mtime() {
		var mtime = sattr.Mtime
		wdir.Mtime = &mtime
	}
	if valid.Gid() {
		wdir.Gid = strconv.Itoa(int(sattr.Gid))
	}
	if valid.Size() {
		var l = int64(sattr.Size)
		wdir.Length = &l
	}
	return
}
func sattrWdir ( sattr * fuse . SetattrRequest ) ( wdir * rh . Wdir ) { var valid = sattr . Valid switch { case valid . Uid ( ) , valid . Atime ( ) : } wdir = & rh . Wdir { } if valid . Mode ( ) { var mp = rhunix . UnixMode ( sattr . Mode ) . RH ( ) wdir . Perm = & mp . Perm } if valid . Mtime ( ) { var mtime = sattr . Mtime wdir . Mtime = & mtime } if valid . Gid ( ) { wdir . Gid = strconv . Itoa ( int ( sattr . Gid ) ) } if valid . Size ( ) { var l = int64 ( sattr . Size ) wdir . Length = & l } return }
sattrWdir converts a fuse.SetattrRequest into a rh.Wdir
sattrWdir converts a fuse . SetattrRequest into a rh . Wdir
// // ignore //