Skip to content

DataAdapter.list method

DataAdapter › list

Official

Retrieve a list of all files and folders inside the given folder, non-recursive.

Signature:

list(normalizedPath: string): Promise<ListedFiles>

Parameters:

ParameterTypeDescription
normalizedPathstringpath to folder, use {@link normalizePath} to normalize beforehand.

Returns: Promise<ListedFiles>

Example:

const { files, folders } = await adapter.list(`${vault.configDir}/snippets`);