pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:469:    if (st->isdir) {    int res = 0;    array(string) files = get_dir(path) || ({});    array(string) new_files = files;    array(string) deleted_files = ({});    if (this::files) {    new_files -= this::files;    deleted_files = this::files - files;    }    MON_WERR("%d files created, %d files deleted.\n", -  sizeof(new_files) sizeof(deleted_files)); +  sizeof(new_files), sizeof(deleted_files));    this::files = files;    foreach(new_files, string file) {    res = 1;    file = canonic_path(Stdio.append_path(path, file));    if(filter_file(file)) continue;    Monitor m2 = monitors[file];    mixed err = catch {    if (m2) {    // We have a separate monitor on the created file.    // Let it handle the notification.