Skip to content

Commit

Permalink
[fs_shim] v2.3.3+1 fix emptyOrCreate for io
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Oct 24, 2024
1 parent 915ca33 commit ada9ec1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.3.3
## 2.3.3+1

* Add `Directory.emptyOrCreate()` helper in utils read_write (fs and io)

Expand Down
3 changes: 1 addition & 2 deletions fs/lib/utils/io/read_write.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ extension DirectoryEmptyOrCreateExt on Directory {

/// Ensure the directory is created and empty.
Future<void> emptyOrCreate() async {
await _fsDir.delete(recursive: true);
await _fsDir.create(recursive: true);
await _fsDir.emptyOrCreate();
}
}
2 changes: 1 addition & 1 deletion fs/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fs_shim
description: A portable file system implementation working on io, browser and memory (through idb_shim)
version: 2.3.3
version: 2.3.3+1
homepage: https://github.com/tekartik/fs_shim.dart/tree/master/fs

environment:
Expand Down

0 comments on commit ada9ec1

Please sign in to comment.