lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit fda5d0010493e475f7af4daa362a8740d289f9eb
parent 732164d42f8543c953f14582ea8329157475342c
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 15 Nov 2023 16:48:26 +0900

update diskfs

Diffstat:
Mdiskfs/fs.go | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/diskfs/fs.go b/diskfs/fs.go @@ -98,4 +98,10 @@ func (fsys *FS) Create(name string, uid string, omode lib9p.OpenMode, perm lib9p path: name, file: osfile, }, nil +} + +func (fsys *FS) Remove(name string) error { + paths := append([]string{fsys.rootPath}, strings.Split(name, "/")...) + ospath := filepath.Join(paths...) + return os.Remove(ospath) } \ No newline at end of file