Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 298 Bytes
package doozer
const (
missing = int64(-iota)
clobber
dir
nop
)
type FileInfo struct {
Name string
Len int
Rev int64
IsSet bool
IsDir bool
}
func basename(path string) string {
for i := len(path) - 1; i >= 0; i-- {
if path[i] == '/' {
return path[i+1:]
}
}
return path
}
Something went wrong with that request. Please try again.