Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtyxtyx/unix_disk_space
Get free disk space info from df, Works on Unix-based systems.
https://github.com/xtyxtyx/unix_disk_space
Last synced: 1 day ago
JSON representation
Get free disk space info from df, Works on Unix-based systems.
- Host: GitHub
- URL: https://github.com/xtyxtyx/unix_disk_space
- Owner: xtyxtyx
- License: mit
- Created: 2020-04-25T00:37:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T00:45:48.000Z (over 4 years ago)
- Last Synced: 2023-08-20T23:27:39.249Z (about 1 year ago)
- Language: Dart
- Homepage: https://pub.dev/packages/unix_disk_space
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Unix Disk Space
Get free disk space info from df, Works on Unix-based systems.
## Usage
**A simple usage example:**
```dart
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.**
```dart
final output = await diskSpace();
```**Get disk info for specified filesystem.**
```dart
final output = await diskSpace.fs('tmpfs');
```**Get disk info for filesystem the given file is part of.**
```dart
final output = await diskSpace.file('./');
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/xtyxtyx/unix_disk_space/issues