zipFolder = (localFolerPath) => {
  const n = uid()
  const p = path.resolve(tempDir, `electerm-temp-${n}.tar`)
  const cwd = path.dirname(localFolerPath)
  const file = path.basename(localFolerPath)
  const tar = require('tar')
  return tar.c({
    gzip: false,
    file: p,
    cwd
  }, [file])
    .then(() => p)
}
zip file
@param {string} localFolerPath absolute path of a folder