MCPcopy Index your code
hub / github.com/ether/etherpad / exists

Function exists

src/node/updater/InstallMethodDetector.ts:15–17  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

13}
14
15const exists = async (p: string): Promise<boolean> => {
16 try { await fs.access(p, fsConstants.F_OK); return true; } catch { return false; }
17};
18
19const writable = async (p: string): Promise<boolean> => {
20 try { await fs.access(p, fsConstants.W_OK); return true; } catch { return false; }

Callers 1

detectInstallMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected