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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart
index ad304ed1b262fcc580cbd48d014297a943d7f25d..e92420ce50529f40cfb7fabcbf9736e70b937072 100644
--- a/pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart
@@ -9,7 +9,7 @@ import 'dart:io';
import 'dart:math' as math;
import 'dart:utf';
-import 'package:path/path.dart' as path;
+import 'package:path/path.dart' as pathos;
gram 2013/08/05 23:23:12 Is there a conflict with path? Otherwise we should
kevmoo-old 2013/08/06 01:27:16 The editor shows some really weird errors when I l
kevmoo-old 2013/08/06 01:27:16 Done.
import '../../descriptor.dart';
import '../../scheduled_test.dart';
@@ -49,7 +49,7 @@ abstract class FileDescriptor extends Descriptor implements ReadableDescriptor {
Future create([String parent]) => schedule(() {
if (parent == null) parent = defaultRoot;
- return new File(path.join(parent, name)).writeAsBytes(contents);
+ return new File(pathos.join(parent, name)).writeAsBytes(contents);
}, "creating file '$name'");
Future validate([String parent]) =>
@@ -57,7 +57,7 @@ abstract class FileDescriptor extends Descriptor implements ReadableDescriptor {
Future validateNow([String parent]) {
if (parent == null) parent = defaultRoot;
- var fullPath = path.join(parent, name);
+ var fullPath = pathos.join(parent, name);
if (!new File(fullPath).existsSync()) {
throw "File not found: '$fullPath'.";
}

Powered by Google App Engine
This is Rietveld 408576698