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

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
40
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

Filesystem storage provider for universal_storage_interface.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

MIT (license)

Dependencies

path, universal_io, universal_storage_interface, universal_storage_sync_utils

More

Packages that depend on universal_storage_filesystem