_fs_shim

A portable file system library to allow working on io and browser (though idb_shim) and memory (through idb_shim), and soon google storage (through storage api), google drive (through google drive api)

Build Status

Usage

In memory

A simple usage example:

import 'package:tekartik_fs_shim/fs_memory.dart';

main() async {
  FileSystem fs = newMemoryFileSystem();
  Directory dir = fs.newDirectory("dummy");
  await dir.create();
}

Using IO API

Replace

import 'dart:io';

with

import 'package:fs_shim/fs_io.dart';

Then a reduced set of the IO API can be used, same source code that might requires some cleanup if you import from existing code

Features and bugs

Libraries

fs_shim

The fs_shim library.

fs_shim.fs_idb
fs_shim.fs_io
fs_shim.fs_memory
fs_shim.utils.copy
fs_shim.utils.entity
fs_shim.utils.glob
fs_shim.utils.part
fs_shim.utils.path
fs_shim.utils.write