MCPcopy Create free account
hub / github.com/apache/mesos / copyFile

Function copyFile

src/launcher/fetcher.cpp:203–213  ·  view source on GitHub ↗

TODO(coffler): Refactor code to eliminate redundant function.

Source from the content-addressed store, hash-verified

201
202// TODO(coffler): Refactor code to eliminate redundant function.
203static Try<string> copyFile(
204 const string& sourcePath, const string& destinationPath)
205{
206 const Try<Nothing> result = os::copyfile(sourcePath, destinationPath);
207
208 if (result.isError()) {
209 return Error(result.error());
210 }
211
212 return destinationPath;
213}
214
215
216static Try<string> download(

Callers 2

downloadFunction · 0.85
fetchFromCacheFunction · 0.85

Calls 4

errorMethod · 0.65
copyfileFunction · 0.50
ErrorFunction · 0.50
isErrorMethod · 0.45

Tested by

no test coverage detected