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

Unified Diff: samples/build_dart/build.dart

Issue 12319148: dart:io | Change a remaining use of File.name to File.path, in samples. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Oops Created 7 years, 10 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 | « runtime/bin/file_patch.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/build_dart/build.dart
diff --git a/samples/build_dart/build.dart b/samples/build_dart/build.dart
index fac074ba3597e7bfbfcd8656e1f1f8155f1a2058..548cb501e361bf7b7cf18efb8c22bd2a9f5d8345 100644
--- a/samples/build_dart/build.dart
+++ b/samples/build_dart/build.dart
@@ -119,7 +119,7 @@ void _processFile(String arg) {
File outFile = new File("${arg}bar");
var out = outFile.openWrite();
- out.addString("// processed from ${file.name}:\n");
+ out.addString("// processed from ${file.path}:\n");
if (contents != null) {
out.addString(contents);
}
@@ -127,7 +127,7 @@ void _processFile(String arg) {
_findErrors(arg);
- print("wrote: ${outFile.name}");
+ print("wrote: ${outFile.path}");
}
}
@@ -151,7 +151,7 @@ void _findErrors(String arg) {
* If this file is a generated file (based on the extension), delete it.
*/
void _maybeClean(File file) {
- if (file.name.endsWith(".foobar")) {
+ if (file.path.endsWith(".foobar")) {
file.delete();
}
}
« no previous file with comments | « runtime/bin/file_patch.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698