diff options
| author | ruki <[email protected]> | 2022-07-23 00:57:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-23 00:57:52 +0800 |
| commit | 762532f952b8319fde777f657a4fe925dd7a4560 (patch) | |
| tree | 3aacf79496c1f392dfe83c2318f1be40fd89d8b9 /tests/modules/fwatcher/watchdirs.lua | |
| parent | 73f9ee4974fcf8899baf2cf34dbbdf739eaf4975 (diff) | |
add watchdirs
Diffstat (limited to 'tests/modules/fwatcher/watchdirs.lua')
| -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 |
