MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / DownloadFileCache

Method DownloadFileCache

src/FTPSession.cpp:240–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240int FTPSession::DownloadFileCache(const char * sourcefile) {
241 if (!m_running)
242 return -1;
243
244 if (sourcefile == NULL)
245 return -1;
246
247 TCHAR target[MAX_PATH]{};
248 target[0] = 0;
249
250 int res = m_currentProfile->GetCacheLocal(sourcefile, target, MAX_PATH);
251 if (res != 0)
252 return res;
253
254 return DownloadFile(sourcefile, target, false, 0);
255}
256
257int FTPSession::DownloadFile(const char * sourcefile, const TCHAR * target, bool targetIsDir, int code) {
258 if (!m_running)

Callers 2

MessageProcMethod · 0.80
OnItemActivationMethod · 0.80

Calls 1

GetCacheLocalMethod · 0.80

Tested by

no test coverage detected