MCPcopy Index your code
hub / github.com/socketstream/socketstream / cp

Function cp

lib/cli/generate.js:68–74  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

66 * @return {Object} Stream object
67 */
68 cp = function(src, dest) {
69 var destination = path.join(name, dest || src),
70 read = fs.createReadStream(path.join(source, src)),
71 write = fs.createWriteStream(destination);
72
73 return read.pipe(write);
74 },
75
76 /**
77 * Writes content to the file

Callers 1

generate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected