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

Function writable

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

Source from the content-addressed store, hash-verified

17};
18
19const writable = async (p: string): Promise<boolean> => {
20 try { await fs.access(p, fsConstants.W_OK); return true; } catch { return false; }
21};
22
23/**
24 * Detect how Etherpad was installed. Returns 'docker' | 'git' | 'npm' | 'managed'.

Callers 1

detectInstallMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected