Versions in this module Expand all Collapse all v6 v6.1.0 Aug 10, 2026 Changes in this version + var ErrCannotCreateDirectory = errors.New("cannot create directory") + var ErrCannotDelete = errors.New("cannot delete file") + var ErrCannotDetermineRoot = errors.New("cannot determine project root") + var ErrCannotOpenFile = errors.New("cannot open file") + var ErrCannotRename = errors.New("cannot rename file") + var ErrCannotWriteFile = errors.New("cannot write file") + var ErrDirectoryNotFound = errors.New("directory not found") + var ErrDirectoryTraversal = errors.New("path contains directory traversal") + var ErrEndOfFile = errors.New("end of file") + var ErrFileIO = errors.New("file I/O error") + var ErrFileUnreadable = errors.New("file unreadable") + var ErrInvalidMode = errors.New("invalid file mode") + var ErrLockFailed = errors.New("lock failed") + var ErrLockTimeout = errors.New("lock timeout") + var ErrPathAbsolute = errors.New("path is absolute") + var ErrPathContainsBackslash = errors.New("path contains backslash") + var ErrPathEmpty = errors.New("path is empty") + var ErrResolvesOutsideRoot = errors.New("path resolves outside project root") + var ErrSymlinkNotAllowed = errors.New("symlinks are not allowed in the spec tree") + var ErrWalkError = errors.New("error walking directory") + var ErrWrongMode = errors.New("wrong file mode for this operation") + func DeleteFile(cfsPath CfsPath) error + func RenameFile(source, destination CfsPath) error + func ValidateStringIsCfsPath(value string) error + type CfsPath string + func ListAllFiles(cfsPath CfsPath) ([]CfsPath, error) + func OsPathToCfs(osPath OsPath) (CfsPath, error) + type File struct + func OpenFile(cfsPath CfsPath, mode string, timeoutMs int) (*File, error) + func (f *File) Close() + func (f *File) ReadLine() (string, error) + func (f *File) SkipLines(count int) error + func (f *File) Write(content string) error + type OsPath string + func CfsPathToOs(cfsPath CfsPath) (OsPath, error) + func GetProjectRoot() (OsPath, error) Other modules containing this package github.com/CodeFromSpec/tool-framework-mcp/v5