Upload folder

Syntax

eueno.uploadFolder(input,[opts],metadata)

Example

const Eueno = require('@eueno/lib-node');

async function example() {
  const eueno = new Eueno({
    endpoint: 'https://v2-developers.eueno.io',
  });
  let data = await eueno.readFolder('./lib');

  await eueno.uploadFolder(data.input, {
      projectKey: 'project_key',
      key: {
        walletPublicKey: 'public_key_of_user_if_method_encrypt',
        fileEncryptionKey: 'key_encrypt_file'
      },
  }, {
    pathLists: data.pathLists,
    projectId: "project id",
  });
}

example();

Parameters

Properties

opts

key

metadata: Information of the file and the project eueno

pathLists: List of files in a folder

Last updated