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

Unified Diff: lib/io/directory.dart

Issue 11362084: Add example of how to get a DirectoryLister to documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixing typo Created 8 years, 1 month 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: lib/io/directory.dart
diff --git a/lib/io/directory.dart b/lib/io/directory.dart
index 740f0cbbd6fb28c25298c7fa41e9203ae945bbba..581170face137956ef41246f38e06fe94da43cee 100644
--- a/lib/io/directory.dart
+++ b/lib/io/directory.dart
@@ -141,6 +141,12 @@ abstract class Directory {
/**
* A [DirectoryLister] represents an actively running listing operation.
*
+ * A [DirectoryLister] is obtained from a [Directory] object by calling
+ * the [:Directory.list:] method.
+ *
+ * Directory dir = new Directory('path/to/my/dir');
+ * DirectoryLister lister = dir.list();
+ *
* For each file and directory, the file or directory handler is
* called. When all directories have been listed the done handler is
* called. If the listing operation is recursive, the error handler is
« 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