MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / startFileTrack

Function startFileTrack

src/pkg/utils/file-tracker.ts:69–73  ·  view source on GitHub ↗
(fileHandle: FileSystemFileHandle, ftInfo: FTInfo)

Source from the content-addressed store, hash-verified

67};
68
69export const startFileTrack = (fileHandle: FileSystemFileHandle, ftInfo: FTInfo) => {
70 const fileObserver = new FileSystemObserver(callback);
71 handleRecords.add([fileHandle, ftInfo, fileObserver]);
72 fileObserver.observe(fileHandle);
73};
74
75export const unmountFileTrack = async (fileHandle: FileSystemFileHandle) => {
76 try {

Callers 1

setupWatchFileFunction · 0.90

Calls 2

addMethod · 0.80
observeMethod · 0.80

Tested by

no test coverage detected