Revert "Fix the dir module."

This reverts commit 4b0ee2e7ca.

Sorry, bad idea.
This commit is contained in:
Bernhard Amann 2013-10-25 18:27:57 -07:00
parent 4b0ee2e7ca
commit f90fcdf152

View file

@ -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 )
{ {