unix_disk_space 0.1.0 copy "unix_disk_space: ^0.1.0" to clipboard
unix_disk_space: ^0.1.0 copied to clipboard

unlisted

Get free disk space info from df, Works on Unix-based systems.

Unix Disk Space #

Get free disk space info from df, Works on Unix-based systems.

Usage #

A simple usage example:

import 'package:unix_disk_space/unix_disk_space.dart';

void main() async {
  final disks = await diskSpace();
  print(disks);

  final fs = await diskSpace.fs('tmpfs');
  print(fs);

  final file = await diskSpace.file('/bin/bash');
  print(file);
}

Get disk info for each filesystem.

final output = await diskSpace();

Get disk info for specified filesystem.

final output = await diskSpace.fs('tmpfs');

Get disk info for filesystem the given file is part of.

final output = await diskSpace.file('./');

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
40
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Get free disk space info from df, Works on Unix-based systems.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on unix_disk_space