We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b341ad6 commit d57d87eCopy full SHA for d57d87e
lib/util/fs.dart
@@ -166,6 +166,13 @@ Future<void> fsUnzipFiles(String zipFilename, String dstDir) async {
166
}
167
168
169
+Future<void> fsGuaranteeDir(String filename) async {
170
+ final dir = Directory(path.dirname(filename));
171
+ if (!dir.existsSync()) {
172
+ dir.create(recursive: true);
173
+ }
174
+}
175
+
176
Future<void> fsDownload(String filename, String url) async {
177
var urlobj = Uri.parse(url);
178
var client = HttpClient();
0 commit comments