databricks-cli/libs/filer/root_path.go

17 lines
246 B
Go
Raw Normal View History

package filer
2023-06-18 23:37:01 +00:00
type RootPath interface {
Join(string) (string, error)
Root() string
}
2023-06-18 23:37:01 +00:00
type NopRootPath struct{}
2023-06-18 23:37:01 +00:00
func (rp NopRootPath) Join(name string) (string, error) {
return name, nil
}
2023-06-18 23:37:01 +00:00
func (rp NopRootPath) Root() string {
return ""
}