Giter Site home page Giter Site logo

fs_shim.dart's People

Contributors

alextekartik avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fs_shim.dart's Issues

Does fs_shim support random read/writes

I need a solution that works for large files (GB+) within a browser.

The storage system must not require any user interactions to create/read/write files.

The storage system needs to provide seek style operations with efficient read/write operations to parts of a large file.

Does fs_shim allow this?

I can't find any references to the likes of RandomAccessFile.
I'm assuming that give fs_shim is backed by indexed_db that it requires no user permissions but I'm unable to find any definitive statement on this.

Support Platform class in fs_shim/fs_io.dart

When replacing

import 'dart:io';

with

import 'package:fs_shim/fs_io.dart';

It would be really handy to have Platform class (from dart:io) also supported when running on web.

So, calls like Platform.isAndroid, Platform.isIOS, etc. would return correct platform the web browser running in.

Support fs_io on web

Currently the fs_io doesn't seem to work on web and you have to fall back to fs_shim.dart and direct use of fileSystemWeb.file() in order to use File API on the web.

It would be really neat if the fs_io worked out of the box on the web too.

File not working on Flutter Web

Hello I tried using your plug in Flutter for Web and it just does not work. Below is the code. Could you please help?

somethingElse()
async {

FileSystem fs = ioFileSystem;
// safe place when running from package root
String dirPath = (Directory.current.path);

// Create a top level directory
// fs.newDirectory('/dir');
Directory dir = new Directory(dirPath);

// delete its content
await dir.delete(recursive: true);

// and a file in it
// fs.newFile(join(dir.path, "file"));
File file = new File(dir.path+ "file.txt");

// create a file
await file.create(recursive: true);
await file.writeAsString("Hello world!");

// list dir content
print(await dir.list(recursive: true, followLinks: true).toList());
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.