sourceFS is a vfs.FS that sources files from a FileSource and tracks seen files.
| 641 | |
| 642 | // sourceFS is a vfs.FS that sources files from a FileSource and tracks seen files. |
| 643 | type sourceFS struct { |
| 644 | tracking bool |
| 645 | toPath func(fileName string) tspath.Path |
| 646 | missingDirectories *collections.SyncSet[tspath.Path] |
| 647 | seenFiles *collections.SyncSet[tspath.Path] |
| 648 | source FileSource |
| 649 | } |
| 650 | |
| 651 | func newSourceFS(tracking bool, source FileSource, toPath func(fileName string) tspath.Path) *sourceFS { |
| 652 | fs := &sourceFS{ |
nothing calls this directly
no outgoing calls
no test coverage detected