Commit 7c4747e0 authored by Erik Schwartz's avatar Erik Schwartz 🉐
Browse files

Add clarifying comment

parent 2b2afd55
......@@ -32,6 +32,9 @@ function downloadFile(sshOpt, remoteFile, localFile, callback) {
}
sftp.exists(remoteFile, (doesExist) => {
if (!doesExist) {
// This will commonly be the case since we are polling for the
// presence of a file (i.e. this is not an error). Return with
// an informational message and be done.
return callback(null, 'Remote file (' + remoteFile + ') not found');
}
sftp.fastGet(remoteFile, localFile, (err) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment