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
Copy
list(remotePath: string, recursive?: boolean, limit?: int)
Listing Files and Directories
Copy
const session = vcr.createSession();
const assets = new Assets(session);
const files = await assets.list('imgs');
Copy
session = vcr.createSession()
assets = Assets(session)
files = await assets.list('imgs')