universal_storage_filesystem 0.1.0-dev.7 copy "universal_storage_filesystem: ^0.1.0-dev.7" to clipboard
universal_storage_filesystem: ^0.1.0-dev.7 copied to clipboard

unlisted

Filesystem storage provider for universal_storage_interface.

universal_storage_filesystem #

Filesystem provider implementing StorageProvider using the local filesystem.

Install #

dependencies:
  universal_storage_interface: ^0.1.0-dev.3
  universal_storage_filesystem: ^0.1.0-dev.3

Usage #

import 'package:universal_storage_interface/universal_storage_interface.dart';
import 'package:universal_storage_filesystem/universal_storage_filesystem.dart';

final service = StorageService(FileSystemStorageProvider());
await service.initializeWithConfig(
  FileSystemConfig(basePath: '/path/to/data'),
);

await service.saveFile('hello.txt', 'Hello');
final content = await service.readFile('hello.txt');

Notes #

  • Not supported on web
  • Creates parent directories automatically

License #

MIT

0
likes
0
points
26
downloads

Documentation

Documentation

Publisher

verified publisherxsoulspace.dev

Weekly Downloads

Filesystem storage provider for universal_storage_interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path, universal_storage_interface

More

Packages that depend on universal_storage_filesystem