Most functions in dir.go use the path function to get the path to the directory entry that is to be worked on.
fi, err := os.Stat(d.path(p))
d is used as the base directory, with p joined to it using path -- the question is, should escaping this base directory be allowed?
The same goes for
os.Rename(p, filepath.Join(base, filepath.FromSlash(name)))
Most functions in
dir.gouse thepathfunction to get the path to the directory entry that is to be worked on.dis used as the base directory, withpjoined to it usingpath-- the question is, should escaping this base directory be allowed?The same goes for