[EXTRAS] inotify extra details
[gnome.gobject-introspection] / extras / inotifytools / example.js
index fce5471..e4cd927 100644 (file)
@@ -45,6 +45,9 @@ var moved_from = '';
 while (true) {
     
     var event = inotifytools.next_event( 0 );
+    Seed.print(event.len);
+    inotifytools.printf(event, "in %w, file %f had event(s): %.e\n");
+    continue;
     if ( !event ) {
         if ( !inotifytools.error() ) {
             Seed.print("Timeout?");
@@ -56,7 +59,7 @@ while (true) {
         } else {
             continue;
                        
-               }
+       }
     }
     if ( moved_from.length && !(event.mask & inotifytools.IN_MOVED_TO) ) {
         if ( !inotifytools.remove_watch_by_filename( moved_from ) ) {