From 6309469e933a31a300fbf16d8e77f48dcee402d3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 12 Apr 2025 13:56:41 +0900 Subject: app/instance: wrap internal implementation This reduces the scope of the fst package, which was growing questionably large. Signed-off-by: Ophestra --- fst/path.go | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 fst/path.go (limited to 'fst/path.go') diff --git a/fst/path.go b/fst/path.go deleted file mode 100644 index 2bdab87c..00000000 --- a/fst/path.go +++ /dev/null @@ -1,11 +0,0 @@ -package fst - -import ( - "path/filepath" - "strings" -) - -func deepContainsH(basepath, targpath string) (bool, error) { - rel, err := filepath.Rel(basepath, targpath) - return err == nil && rel != ".." && !strings.HasPrefix(rel, string([]byte{'.', '.', filepath.Separator})), err -} -- cgit v1.3.1