FileSystemEvent.hx 418 B

1234567891011121314151617
  1. package lua.lib.luv.fs;
  2. @:luaRequire("luv")
  3. extern class FileSystemEvent {
  4. static function new_fs_event() : FileSystemEvent;
  5. @:native("new_fs_event") function new() : Void;
  6. function start(path : String, options : StartOptions, cb : String->Bool->Void) : Int;
  7. function stop() : Int;
  8. function getpath() : String;
  9. }
  10. typedef StartOptions = {
  11. watch_entry : Bool,
  12. stat : Bool,
  13. recursive : Bool
  14. }