size 1.0.2 copy "size: ^1.0.2" to clipboard
size: ^1.0.2 copied to clipboard

outdated

A simple plugin that can display disk size on desktop.

example/size_example.dart

import 'dart:io';

import 'package:size/size.dart';

void main() async {
  var x = Sizes();
  print(await Directory.current.is_empty());
  print(x.getAvailableDiskSpace('/home'));
  print(x.getFreeDiskSpace('/home/francis/Projects/Filesize/D'));
  print(x.getDiskCapacity('/'));
  var size = Sizes();
  print(
      'Your Disk capacity is: ${size.getDiskCapacity(Directory.current.path)}');
}
6
likes
0
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

A simple plugin that can display disk size on desktop.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, path

More

Packages that depend on size

Packages that implement size