Pub license

desktop_disk_space

A Flutter plugin to query the disk space in desktop

Installing

With Flutter:

$ flutter pub add desktop_disk_space

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
desktop_disk_space: ^0.0.1

Note

  • This plugin is under development and currently only supports windows.
  • Support for Linux will be added in the future.
  • Pull requests are welcome (especially for MacOS support)

Usage

void test() async {
  final currentDriveTotalSpace = await DesktopDiskSpace.instance.getTotalSpace();
  final currentDriveFreeSpace = await DesktopDiskSpace.instance.getFreeSpace();
  final c_driveTotalSpace = await DesktopDiskSpace.instance.getTotalSpace("C:\\");
  final c_driveFreeSpace = await DesktopDiskSpace.instance.getFreeSpace("C:\\"); 
}