Skip to content

Commit

Permalink
Fix dirty export for data, closes LinwoodDev/Butterfly#777
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Dec 29, 2024
1 parent 307657c commit 5ab1b96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/lw_file_system_api/lib/src/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ abstract class ArchiveData<T> {
state.added.containsKey(file.name)) {
continue;
}
archive.addFile(file);
if (file.isDirectory) {
archive.addFile(ArchiveFile.directory(file.name));
} else if (file.isFile) {
archive.addFile(ArchiveFile.bytes(file.name, file.content));
}
}
return archive;
}
Expand Down

0 comments on commit 5ab1b96

Please sign in to comment.