file.dart
file.dart copied to clipboard
A generic file system abstraction for Dart.
Provides the ability to mount arbitrary file systems as "directories" @cbracken, coupled with `ChrootFileSystem`, this would provide the functionality you were talking about a few weeks ago.
Fix of #61.
Add an `IOOverrides` implementation for `MemoryFileSystem`. This provides a less invasive mechanism for testing code that uses `dart:io` directly. This is a work-in-progress because: * The tests probably could be...
Future loadformmemory() async { final Uint8List assetData = await readAssetFileBytes(); final Directory tmp = await memoryFileSystem.systemTempDirectory.createTemp("mem_"); inMemoryFile = tmp.childFile('m.mp4'); inMemoryFile.writeAsBytes(assetData, flush: true); } loadformmemory().then((value) { _controller = VideoPlayerController.file( inMemoryFile )...
[`MemoryDirectory.listSync()`](https://github.com/google/file.dart/blob/master/packages/file/lib/src/backends/memory/memory_directory.dart#L127) calls cannot trigger callbacks for testing purposes because `FileSystemOp.listSync` was never implemented at https://github.com/google/file.dart/blob/master/packages/file/lib/src/backends/memory/operations.dart#L10.
Hello, I've just encountered a problem when I'm trying to access files on Google Drive connected via Gnome Online Accounts. Basically it's the same as google drive for Windows on...
Hi, It is just a question. Have there been any breaking changes introduced in the latest released version as compared to the previous one (6.1.4)? You appear to be using...
Trying to `copy` a file that does not exist throws different exceptions depending on the underlying implementation. Assuming file `aaa` does not exist: ```dart import 'package:file/file.dart'; import 'package:file/local.dart'; void main()...
I'm using the MemoryFileSystem in some of my tests, and they fail only on Windows. I tracked down the cause of the failure to this minimal test of `MemoryDirectory`: ```dart...
Here's some code to reproduce the issue: ```dart // lib/main.dart import 'package:file/memory.dart' as f; void main() { final fs = f.MemoryFileSystem(); final dir = fs.directory('/path'); final dir2 = dir.childDirectory('another'); final...