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

Unified Diff: frog/lib/node/node.dart

Issue 8572044: Clean and create output directory when generating docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 9 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 | « frog/frogsh ('k') | utils/dartdoc/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/node/node.dart
diff --git a/frog/lib/node/node.dart b/frog/lib/node/node.dart
index 176609ef1e98e3f7f8709785b7a9460fcd21ce06..58b5dad5b60f1909469384af3d1298ab485ea7fa 100644
--- a/frog/lib/node/node.dart
+++ b/frog/lib/node/node.dart
@@ -90,6 +90,25 @@ class fs native "require('fs')" {
native;
static String realpathSync(String path) native;
+
+ static void mkdirSync(String path, [num mode = 511 /* 077 octal */]) native;
+ static List<String> readdirSync(String path) native;
+ static void rmdirSync(String path) native;
+ static Stats statSync(String path) native;
+ static void unlinkSync(String path) native;
+}
+
+class Stats native "fs.Stats" {
+ bool isFile() native;
+ bool isDirectory() native;
+ bool isBlockDevice() native;
+ bool isCharacterDevice() native;
+ bool isSymbolicLink() native;
+ bool isFIFO() native;
+ bool isSocket() native;
+
+ // TODO(rnystrom): There are also the other fields we can add here if needed.
+ // See: http://nodejs.org/docs/v0.6.1/api/fs.html#fs.Stats.
}
class path native "require('path')" {
« no previous file with comments | « frog/frogsh ('k') | utils/dartdoc/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698