rename and delete in root fs fix

This commit is contained in:
royalcat 2024-10-14 03:58:42 +03:00
parent 80884aca6a
commit 63e63c1c37
18 changed files with 282 additions and 58 deletions
src/vfs

View file

@ -37,6 +37,8 @@ type Filesystem interface {
Stat(ctx context.Context, filename string) (fs.FileInfo, error)
Unlink(ctx context.Context, filename string) error
Rename(ctx context.Context, oldpath, newpath string) error
// As filesystem mounted to some path, make sense to have the filesystem implement DirEntry
fs.DirEntry
}