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

Unified Diff: packages/quiver/lib/io.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/quiver/lib/core.dart ('k') | packages/quiver/lib/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/quiver/lib/io.dart
diff --git a/packages/quiver/lib/io.dart b/packages/quiver/lib/io.dart
index e5e5e4e9a6c1cec28cd71fe6fba545fb8b34f93b..e71fb7b203292ebaca963a26cf70e372b456cfcc 100644
--- a/packages/quiver/lib/io.dart
+++ b/packages/quiver/lib/io.dart
@@ -20,27 +20,21 @@ import 'dart:io';
import 'package:quiver/async.dart';
-/**
- * Converts a [Stream] of byte lists to a [String].
- */
+/// Converts a [Stream] of byte lists to a [String].
Future<String> byteStreamToString(Stream<List<int>> stream,
{Encoding encoding: UTF8}) {
return stream.transform(encoding.decoder).join();
}
-/**
- * Gets the full path of [path] by using [File.fullPathSync].
- */
+/// Gets the full path of [path] by using [File.fullPathSync].
String getFullPath(path) => new File(path).resolveSymbolicLinksSync();
-/**
- * Lists the sub-directories and files of this Directory, optionally recursing
- * into sub-directories based on the return value of [visit].
- *
- * [visit] is called with a [File], [Directory] or [Link] to a directory,
- * never a Symlink to a File. If [visit] returns true, then it's argument is
- * listed recursively.
- */
+/// Lists the sub-directories and files of this Directory, optionally recursing
+/// into sub-directories based on the return value of [visit].
+///
+/// [visit] is called with a [File], [Directory] or [Link] to a directory,
+/// never a Symlink to a File. If [visit] returns true, then it's argument is
+/// listed recursively.
Future visitDirectory(Directory dir, Future<bool> visit(FileSystemEntity f)) {
var futureGroup = new FutureGroup();
@@ -72,6 +66,7 @@ Future visitDirectory(Directory dir, Future<bool> visit(FileSystemEntity f)) {
completer.complete(null);
}, cancelOnError: true);
}
+
_list(dir);
return futureGroup.future;
« no previous file with comments | « packages/quiver/lib/core.dart ('k') | packages/quiver/lib/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698