mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Revert "Fix the dir module."
This reverts commit 4b0ee2e7ca
.
Sorry, bad idea.
This commit is contained in:
parent
4b0ee2e7ca
commit
f90fcdf152
1 changed files with 1 additions and 2 deletions
|
@ -28,8 +28,7 @@ event Dir::monitor_ev(dir: string, last_files: set[string],
|
||||||
callback: function(fname: string),
|
callback: function(fname: string),
|
||||||
poll_interval: interval)
|
poll_interval: interval)
|
||||||
{
|
{
|
||||||
# the command lists all file in the directory in the form [inode]-[ctime] [filename]
|
when ( local result = Exec::run([$cmd=fmt("ls -i -1 \"%s/\"", str_shell_escape(dir))]) )
|
||||||
when ( local result = Exec::run([$cmd=fmt("find \"%s\" -depth 1 -exec stat -f \"%%i-%%c %%N\" {} \\;", str_shell_escape(dir))]) )
|
|
||||||
{
|
{
|
||||||
if ( result$exit_code != 0 )
|
if ( result$exit_code != 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue