@ethersphere/bee-js
Version:
Javascript client for Bee
15 lines (14 loc) • 447 B
TypeScript
import { Collection } from '../types';
/**
* Creates array in the format of Collection with data loaded from directory on filesystem.
*
* @param dir path to the directory
*/
export declare function makeCollectionFromFS(dir: string): Promise<Collection>;
/**
* Calculate folder size recursively
*
* @param dir the path to the folder to check
* @returns size in bytes
*/
export declare function getFolderSize(dir: string): Promise<number>;