This repository has been archived on 2026-07-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
codespace/internal/fs/filesystem.go
T
2026-07-02 15:07:54 +08:00

14 lines
403 B
Go

package fs
// FileSystem abstracts file operations within a single workspace root.
// All path arguments are workspace-relative.
type FileSystem interface {
List(path string) ([]FileInfo, error)
Read(path string) ([]byte, error)
Write(path string, data []byte) error
Mkdir(path string) error
Remove(path string) error
Rename(oldPath, newPath string) error
Stat(path string) (*FileInfo, error)
}