Skip to main content

getTotalFilesCount()

getTotalFilesCount(): Promise<number>

Defined in: packages/core/src/index.ts:1743

Get the total count of files for the current user

Returns

Promise<number>

Total number of files

Throws

401 - Not authenticated

Example

import { getTotalFilesCount } from "@cpod/sdk";

const count = await getTotalFilesCount();
console.log(`You have ${count} files`);