folder_permission_checker 0.0.2 copy "folder_permission_checker: ^0.0.2" to clipboard
folder_permission_checker: ^0.0.2 copied to clipboard

A Flutter plugin to check folder read/write permissions.

folder_permission_checker #

A simple package for checking whether a folder is readonly or writable

Warning

This package hasn't been tested on other OS except MacOS, if you facing any problems, please open an issue.

Prerequisite #

Please make sure you have Rust compiler installed

Compability #

Worked on MacOS, but haven't tested on other OS yet.

And for Android, maybe you need to give externel storage read/write permission for the package to work.

Usage #

First, you need to initialize the module:

Future<void> main() async {
  await FolderPermissionChecker.init();     //Add this line
  runApp(const MyApp());
}

Then you can use this module like this.

bool isReadonly = await FolderPermissionChecker.isReadonly('/some/path/or/file');
print(isReadonly);
bool isWritable = await FolderPermissionChecker.isDirectoryWritable("/some/path");
print(isWritable);

You can see real Flutter usage example in example folder.

Contribution #

Welcome to contribute to this project. Feel free to open an issue or submit a pull request.

0
likes
150
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to check folder read/write permissions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_rust_bridge, plugin_platform_interface

More

Packages that depend on folder_permission_checker

Packages that implement folder_permission_checker