@ethersphere/bee-js
Version:
Javascript client for Bee
18 lines • 583 B
JavaScript
/**
* Creates array in the format of Collection with data loaded from directory on filesystem.
* The function loads all the data into memory!
*
* @param dir path to the directory
*/
export async function makeCollectionFromFS(_dir) {
throw new Error('Creating Collection from File System is not supported in browsers!');
}
/**
* Calculate folder size recursively
*
* @param dir the path to the folder to check
* @returns size in bytes
*/
export async function getFolderSize(_dir) {
throw new Error('Creating Collection from File System is not supported in browsers!');
}