UNPKG

netstorage

Version:

A TypeScript API and CLI for the Akamai NetStorage REST interface

18 lines (17 loc) 815 B
import { type RemoteWalkEntry, type RemoteWalkParams, type NetStorageClientConfig } from '../../index'; /** * Builds an adjacency list of remote directory entries grouped by depth, and calculates the total size. * * @param config - The NetStorage client config. * @param params - Parameters for walking the remote directory. * @returns An object containing depth buckets of entries and the total size. * @property depthBuckets - Array of objects each containing a depth level and associated entries. * @property totalSize - Cumulative size of all files found in the walk. */ export declare function buildAdjacencyList(config: NetStorageClientConfig, params: RemoteWalkParams): Promise<{ depthBuckets: Array<{ depth: number; entries: RemoteWalkEntry[]; }>; totalSize: number; }>;