     @restart = (byteOffset) -> Promise.try () ->
       restartOffset = byteOffset
       undefined
-    
+
     # methods listed in complexPassthroughMethods, which will get a common logic wrapper
 
     @list = (path='.') ->

      promisifiedClientMethods.read(handle, buffer, offset, length, position)
      .spread (bytesRead, buffer, position) ->
        { bytesRead, buffer, position }
        
    @wait = () ->  # no-op, will perform wrapper logic only

        
    # common promise, connection-check, and reconnect logic
    commonLogicFactory = (name, finishType, handler) ->
      if finishType == 'continue'

        if connectOptions.keepalive && !connectOptions.keepaliveInterval
          connectOptions.keepaliveInterval = connectOptions.keepalive
        delete connectOptions.keepalive

        # now that everything is set up, we can connect
        _connect(STATUSES.CONNECTING)

