List Files and Directories
The Assets provider allows you to list files and directories that are available in your project. You can list files recursively, which defaults to false. As well as provide a limit on responses, the default for which is 1000.
Method Signature
list(remotePath: string, recursive?: boolean, limit?: int)
Listing Files and Directories
const session = vcr.createSession();
const assets = new Assets(session);
const files = await assets.list('imgs');
session = vcr.createSession()
assets = Assets(session)
files = await assets.list('imgs')