aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs/os/os.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/fs/os/os.go')
-rw-r--r--utils/fs/os/os.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/fs/os/os.go b/utils/fs/os/os.go
index 0b0173f..800bd41 100644
--- a/utils/fs/os/os.go
+++ b/utils/fs/os/os.go
@@ -100,6 +100,11 @@ func (fs *OS) Stat(filename string) (FileInfo, error) {
return os.Stat(fullpath)
}
+func (fs *OS) Remove(filename string) error {
+ fullpath := fs.Join(fs.base, filename)
+ return os.Remove(fullpath)
+}
+
func (fs *OS) TempFile(dir, prefix string) (File, error) {
fullpath := fs.Join(fs.base, dir)
if err := fs.createDir(fullpath + string(os.PathSeparator)); err != nil {