MCPcopy
hub / github.com/ollm/OpenComic / existsSync

Function existsSync

scripts/server-client.js:109–125  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

107}
108
109function existsSync(path)
110{
111 if(!fs.existsSync(path))
112 return false;
113
114 const stat = fs.statSync(path);
115
116 if(stat.size === 0)
117 return false;
118
119 const isDownloading = p.join(p.dirname(path), sha1(path)+'-is-downloading.txt');
120
121 if(fs.existsSync(isDownloading))
122 return false;
123
124 return true;
125}
126
127var closeServersST = {};
128

Callers

nothing calls this directly

Calls 1

sha1Function · 0.85

Tested by

no test coverage detected