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

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: Git rid of need for grid-22.png. 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
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;
Jacob 2011/11/16 19:59:30 should these be bool get file() native; bool get
jimhug 2011/11/17 16:59:44 This is a tough interop case and I'm unsure at whi
jacob314 2011/11/17 19:06:16 I agree that just reusing the node names and at mo
Bob Nystrom 2011/11/17 20:44:21 What Jim said. I was under the impression that thi
+ 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')" {

Powered by Google App Engine
This is Rietveld 408576698