Chromium Code Reviews| 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')" { |