parameters: (self, remote_path)
return_statement: return dict(zip(files, stat_dicts))
docstring: List a directory and all its file metadata on the remote machine.
  
          :param remote_path: Path to directory
          :returns: A dict of file metadata
docstring_summary: List a directory and all its file metadata on the remote machine.
docstring_tokens: List a directory and all its file metadata on the remote machine .
function: def getlongdir(self, remote_path):
          """List a directory and all its file metadata on the remote machine.
  
          :param remote_path: Path to directory
          :returns: A dict of file metadata
  
          """
  
          names = [
              "device",
              "inode",
              "mode",
              "nlink",
              "uid",
              "gid",
              "rdevice",
              "size",
              "blksize",
              "blocks",
              "atime",
              "mtime",
              "ctime",
          ]
  
          length = int(
              self._simple_command("getlongdir {0}\n".format(quote(remote_path)))
          )
          result = self._get_fixed_data(length).decode()
  
          results = result.rstrip().split("\n")
          files = results[::2]
          stat_dicts = [
              dict(zip(names, [int(x) for x in s.split()])) for s in results[1::2]
          ]
          return dict(zip(files, stat_dicts))
function_tokens: def getlongdir ( self , remote_path ) : names = [ "device" , "inode" , "mode" , "nlink" , "uid" , "gid" , "rdevice" , "size" , "blksize" , "blocks" , "atime" , "mtime" , "ctime" , ] length = int ( self . _simple_command ( "getlongdir {0}\n" . format ( quote ( remote_path ) ) ) ) result = self . _get_fixed_data ( length ) . decode ( ) results = result . rstrip ( ) . split ( "\n" ) files = results [ : : 2 ] stat_dicts = [ dict ( zip ( names , [ int ( x ) for x in s . split ( ) ] ) ) for s in results [ 1 : : 2 ] ] return dict ( zip ( files , stat_dicts ) )