           input = fs.createReadStream(input)
         input.pipe(stream)
         undefined
-  
+
     @delete = promisifiedClientMethods.unlink
 
     @mkdir = (dirPath, recursive, attributes) =>

    # common 'finish' logic
    finishLogic = (stream) ->
      continuePromise = new Promise (resolve, reject) ->
        stream.once('finish', resolve)
      undefined

    # internal connect logic

          sshClient.end()

    @logout = @end

    @destroy = () ->
      if connectionStatus == STATUSES.NOT_YET_CONNECTED || connectionStatus == STATUSES.DISCONNECTED
        wasDisconnected = true
