SFTP: add a few comments

This commit is contained in:
terrafrost 2013-03-24 20:28:55 -05:00
parent 05e832d14f
commit 725a2e0b39

View File

@ -1648,6 +1648,7 @@ class Net_SFTP extends Net_SSH2 {
} }
break; break;
case NET_SFTP_STATUS: case NET_SFTP_STATUS:
// could, in theory, return false if !strlen($content) but we'll hold off for the time being
$this->_logError($response); $this->_logError($response);
break 2; break 2;
default: default:
@ -1691,6 +1692,7 @@ class Net_SFTP extends Net_SSH2 {
return false; return false;
} }
// if $content isn't set that means a file was written to
if (isset($content)) { if (isset($content)) {
return $content; return $content;
} }