List files in a repository on the provided path
npx @superfaceai/cli install vcs/repository-files
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('vcs/repository-files');
// Use the profile
const result = await profile
.getUseCase('ListDirectory')
.perform({
repository: '',
owner: '',
path: '',
reference: '',
page: ''
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.