MCPcopy
hub / github.com/marktext/marktext / unlink

Function unlink

packages/desktop/src/main/filesystem/watcher.ts:95–101  ·  view source on GitHub ↗
(win: BrowserWindow, pathname: string, type: WatchType)

Source from the content-addressed store, hash-verified

93}
94
95const unlink = (win: BrowserWindow, pathname: string, type: WatchType): void => {
96 const file = { pathname }
97 win.webContents.send(EVENT_NAME[type], {
98 type: 'unlink',
99 change: file
100 })
101}
102
103const change = async(
104 win: BrowserWindow,

Callers 1

watchMethod · 0.85

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected