Lines Matching refs:Dir
188 // If there is no Separator in path, Split returns an empty dir
190 // The returned values have the property that path = dir+file.
191 func Split(path string) (dir, file string) {
331 // prefix; that is, if Walk is called with "dir", which is a directory
333 // "dir/a". The info argument is the os.FileInfo for the named path.
444 // Dir returns all but the last element of path, typically the path's directory.
447 // If the path is empty, Dir returns ".".
448 // If the path consists entirely of separators, Dir returns a single separator.
450 func Dir(path string) string {
456 dir := Clean(path[len(vol) : i+1])
457 return vol + dir