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