Home | History | Annotate | Download | only in filepath

Lines Matching defs:string

23 // and retrieving the final string. It does not allocate a buffer
26 path string
29 volAndPath string
53 func (b *lazybuf) string() string {
57 return b.volAndPath[:b.volLen] + string(b.buf[:b.w])
82 // If the result of this process is an empty string, Clean
83 // returns the string ".".
88 func Clean(path string) string {
154 // Turn empty string into "."
159 return FromSlash(out.string())
165 func ToSlash(path string) string {
169 return strings.Replace(path, string(Separator), "/", -1)
175 func FromSlash(path string) string {
179 return strings.Replace(path, "/", string(Separator), -1)
185 // string.
186 func SplitList(path string) []string {
195 func Split(path string) (dir, file string) {
209 func Join(elem ...string) string {
217 func Ext(path string) string {
231 func EvalSymlinks(path string) (string, error) {
240 func Abs(path string) (string, error) {
244 func unixAbs(path string) (string, error) {
263 func Rel(basepath, targpath string) (string, error) {
310 seps := strings.Count(base[b0:bl], string(Separator))
326 return string(buf), nil
350 type WalkFunc func(path string, info os.FileInfo, err error) error
355 func walk(path string, info os.FileInfo, walkFn WalkFunc) error {
398 func Walk(root string, walkFn WalkFunc) error {
413 func readDirNames(dirname string) ([]string, error) {
431 func Base(path string) string {
451 return string(Separator)
462 func Dir(path string) string {
480 func VolumeName(path string) string {