file 3.0.0 file: ^3.0.0 copied to clipboard
A pluggable, mockable file system abstraction for Dart.
3.0.0
- Import
dart:io
unconditionally. More recent Dart SDK revisions allowdart:io
to be imported in a browser context, though if methods are actually invoked, they will fail. This matches well withpackage:file
, where users can use thememory
library and get in-memory implementations of thedart:io
interfaces. - Bump minimum Dart SDK to
1.24.0
2.3.7
- Fix Dart 2 error.
2.3.6
- Relax sdk upper bound constraint to '<2.0.0' to allow 'edge' dart sdk use.
2.3.5
- Fix internal use of a cast which fails on Dart 2.0 .
2.3.4
- Bumped maximum Dart SDK version to 2.0.0-dev.infinity
2.3.3
- Relaxes version requirements on
package:intl
2.3.2
- Fixed
FileSystem.directory(Uri)
,FileSystem.file(Uri)
, andFileSystem.link(Uri)
to consult the file system's path context when converting the URI to a file path rather than usingUri.toFilePath()
.
2.3.1
- Fixed
MemoryFileSystem
to makeFile.writeAs...()
update the last modified time of the file.
2.3.0
- Added the following convenience methods in
Directory
:Directory.childDirectory(String basename)
Directory.childFile(String basename)
Directory.childLink(String basename)
2.2.0
- Added
ErrorCodes
class, which holds errno values.
2.1.0
- Add support for new
dart:io
API methods added in Dart SDK 1.23
2.0.1
- Minor doc updates
2.0.0
- Improved
toString
implementations in file system entity classes - Added
ForwardingFileSystem
and associated forwarding classes to the mainfile
library - Removed
FileSystem.pathSeparator
, and added a more comprehensiveFileSystem.path
property - Added
FileSystemEntity.basename
andFileSystemEntity.dirname
- Added the
record_replay
library - Added the
testing
library
1.0.1
- Added
FileSystem.systemTempDirectory
- Added the ability to pass
Uri
andFileSystemEntity
types toFileSystem.directory()
,FileSystem.file()
, andFileSystem.link()
- Added
FileSystem.pathSeparator
1.0.0
- Unified interface to match dart:io API
- Local file system implementation
- In-memory file system implementation
- Chroot file system implementation
0.1.0
- Initial version