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

Function client

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

Source from the content-addressed store, hash-verified

179}
180
181var client = function(path) {
182
183 this.path = path;
184
185 this.sha = sha1(getAdress(path));
186 this.tmp = p.join(tempFolder, this.sha);
187
188 this.file = fileManager.fileCompressed(path);
189
190 this.config = {
191
192 };
193
194 this._features = {
195 smb: {
196 read: true,
197 single: true,
198 progress: true,
199 secure: false, // ??
200 },
201 ftp: {
202 read: true,
203 single: true,
204 progress: true,
205 secure: false,
206 },
207 ftps: {
208 read: true,
209 single: true,
210 progress: true,
211 secure: true,
212 },
213 ssh: {
214 read: true,
215 single: true,
216 progress: true,
217 secure: true,
218 },
219 scp: {
220 read: true,
221 single: true,
222 progress: true,
223 secure: true,
224 },
225 s3: {
226 read: true,
227 single: true,
228 progress: true,
229 secure: true,
230 },
231 webdav: {
232 read: true,
233 single: true,
234 progress: true,
235 secure: false,
236 },
237 webdavs: {
238 read: true,

Callers

nothing calls this directly

Calls 13

sha1Function · 0.85
getAdressFunction · 0.85
_serverLastErrorFunction · 0.85
getHostFunction · 0.85
getPortFunction · 0.85
getShareFunction · 0.85
getPathWithoutShareFunction · 0.85
resolveFunction · 0.85
isDomainFunction · 0.85
loadWebdavFunction · 0.85
closeMethod · 0.80
getPathFunction · 0.70

Tested by

no test coverage detected