Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static async checkBootStrapFreeSpace() {
const freeSpaceForBootStrap = 20000000000; //20gb
const diskSpace = await checkDiskSpace(coreDataDir);
return diskSpace.free >= freeSpaceForBootStrap;
}
static async checkFreeSpace(gigsToCheck) {
const diskSpace = await checkDiskSpace(coreDataDir);
return diskSpace.free >= gigsToCheck * 1000000000;
}
/**
async function checkFreeSpaceForBootstrap() {
const diskSpace = await checkDiskSpace(getExtractDest());
return diskSpace.free >= minFreeSpace;
}