Documentation
¶
Overview ¶
Package trackingvfs provides a VFS wrapper that records every file path accessed during compilation. This allows watch mode to know exactly which files and directories the compiler depended on, including non-existent paths from failed module resolution.
Index ¶
- type FS
- func (fs *FS) AppendFile(path string, data string) error
- func (fs *FS) Chtimes(path string, aTime time.Time, mTime time.Time) error
- func (fs *FS) DirectoryExists(path string) bool
- func (fs *FS) FileExists(path string) bool
- func (fs *FS) GetAccessibleEntries(path string) vfs.Entries
- func (fs *FS) ReadFile(path string) (string, bool)
- func (fs *FS) Realpath(path string) string
- func (fs *FS) Remove(path string) error
- func (fs *FS) Stat(path string) vfs.FileInfo
- func (fs *FS) UseCaseSensitiveFileNames() bool
- func (fs *FS) WalkDir(root string, walkFn vfs.WalkDirFunc) error
- func (fs *FS) WriteFile(path string, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
Inner vfs.FS
SeenFiles collections.SyncSet[string]
}
FS wraps a vfs.FS and records every path accessed via read-like operations. Write operations (WriteFile, Remove, Chtimes) are not tracked since they represent outputs, not dependencies.
func (*FS) DirectoryExists ¶
func (*FS) FileExists ¶
func (*FS) UseCaseSensitiveFileNames ¶
Click to show internal directories.
Click to hide internal directories.