diff options
| author | 2026-03-30 08:34:28 +0000 | |
|---|---|---|
| committer | 2026-03-30 08:34:28 +0000 | |
| commit | f82bdff5f944cffb2017018aca2f96704dae5b3a (patch) | |
| tree | 2889d89f7f9d0b1e6a67e57759c698d5fe028cd7 /object/fetch/treefs_path.go | |
| parent | object/tree: Why wasn't I binary searching for remove (diff) | |
| signature | No signature | |
object/fetch: Use the new path splitting API v0.1.155
Diffstat (limited to 'object/fetch/treefs_path.go')
| -rw-r--r-- | object/fetch/treefs_path.go | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/object/fetch/treefs_path.go b/object/fetch/treefs_path.go index 7aa31c7f..a2dc3155 100644 --- a/object/fetch/treefs_path.go +++ b/object/fetch/treefs_path.go @@ -1,29 +1,11 @@ package fetch -import ( - "io/fs" - "strings" -) +import "io/fs" func treeFSValidPath(name string) bool { return name == "." || fs.ValidPath(name) } -func treeFSSplitPath(name string) [][]byte { - if name == "." { - return nil - } - - parts := strings.Split(name, "/") - - out := make([][]byte, len(parts)) - for i, part := range parts { - out[i] = []byte(part) - } - - return out -} - func treeFSPathError(op treeFSOp, path string, err error) error { return &fs.PathError{Op: op.pathErrorOp(), Path: path, Err: err} } |
