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