Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 2669223003: Change the DevFS base path (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/vmservice_io.dart
diff --git a/runtime/bin/vmservice/vmservice_io.dart b/runtime/bin/vmservice/vmservice_io.dart
index b092b21fea19cd678b66afb539cdfcea63191e25..9937282e05533c264af9dad6de226dfc5e43642a 100644
--- a/runtime/bin/vmservice/vmservice_io.dart
+++ b/runtime/bin/vmservice/vmservice_io.dart
@@ -65,7 +65,11 @@ Future cleanupCallback() async {
Future<Uri> createTempDirCallback(String base) async {
Directory temp = await Directory.systemTemp.createTemp(base);
- return temp.uri;
+ // Underneath the temporary directory, create a directory with the
+ // same name as the DevFS name [base].
+ var fsUri = temp.uri.resolveUri(new Uri.directory(base));
+ await new Directory.fromUri(fsUri).create();
+ return fsUri;
}
Future deleteDirCallback(Uri path) async {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698