diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modules/fwatcher/watchdirs.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/modules/fwatcher/watchdirs.lua b/tests/modules/fwatcher/watchdirs.lua new file mode 100644 index 000000000..cbe8914ef --- /dev/null +++ b/tests/modules/fwatcher/watchdirs.lua @@ -0,0 +1,8 @@ +import("core.base.fwatcher") + +function main(watchdir) + print("watch %s ..", watchdir) + fwatcher.watchdirs(watchdir, function (event) + print(event) + end) +end |
