How to use check-disk-space - 4 common examples

To help you get started, we’ve selected a few check-disk-space examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Nexusoft / NexusInterface / src / shared / actions / bootstrap / Bootstrapper.js View on Github external
static async checkBootStrapFreeSpace() {
    const freeSpaceForBootStrap = 20000000000; //20gb
    const diskSpace = await checkDiskSpace(coreDataDir);
    return diskSpace.free >= freeSpaceForBootStrap;
  }
github Nexusoft / NexusInterface / src / shared / actions / bootstrap / Bootstrapper.js View on Github external
static async checkFreeSpace(gigsToCheck) {
    const diskSpace = await checkDiskSpace(coreDataDir);
    return diskSpace.free >= gigsToCheck * 1000000000;
  }
  /**
github Nexusoft / NexusInterface / src / shared / lib / bootstrap.js View on Github external
async function checkFreeSpaceForBootstrap() {
  const diskSpace = await checkDiskSpace(getExtractDest());
  return diskSpace.free >= minFreeSpace;
}

check-disk-space

Light multi-platform disk space checker without third party for Node.js

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis

Popular check-disk-space functions