nl_tokens: Check a directory for changes .
pl_tokens: function checkDir ( ) { var n = indexes [ i ] if ( i > 44 ) { indexes [ i ] = ( indexes [ i ] + 5 ) % list . length } i = ( i + 1 ) % indexes . length var dir = list [ n ] if ( dir ) { fs . stat ( dir , function ( e , stat ) { if ( ! e && ( stat . mtime > okToNotifyAfter ) ) { fs . readdir ( dir , function ( e , files ) { if ( ! e ) { files . forEach ( function ( file ) { var path = dir + '/' + <mask> fs . stat ( path , function ( e , stat ) { if ( ! e && ( stat . mtime > okToNotifyAfter ) ) { notify ( path ) } } ) } ) } } ) } } ) } }