Optionalrequest: FoldersAndFilesRequestOptional request with folder_id to get contents of specific folder
Folders and files in the requested location
import { getFoldersAndFiles } from "@cpod/sdk";
// Get root level folders and files
const root = await getFoldersAndFiles();
// Get contents of a specific folder
const contents = await getFoldersAndFiles({ folder_id: "folder-123" });
console.log(`${contents.folders.length} folders, ${contents.files.length} files`);
Get folders and files in a hierarchical structure