aboutsummaryrefslogtreecommitdiffstats
path: root/repository/localstorage_billy.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/localstorage_billy.go')
-rw-r--r--repository/localstorage_billy.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/repository/localstorage_billy.go b/repository/localstorage_billy.go
new file mode 100644
index 00000000..ab3909c9
--- /dev/null
+++ b/repository/localstorage_billy.go
@@ -0,0 +1,16 @@
+package repository
+
+import (
+ "github.com/go-git/go-billy/v5"
+ "github.com/go-git/go-billy/v5/util"
+)
+
+var _ LocalStorage = &billyLocalStorage{}
+
+type billyLocalStorage struct {
+ billy.Filesystem
+}
+
+func (b billyLocalStorage) RemoveAll(path string) error {
+ return util.RemoveAll(b.Filesystem, path)
+}