00:07:45  * hd_quit (Ping timeout: 260 seconds)
00:19:48  * andosjoined
00:22:45  <andos>Hi. Quick question I can’t seem to find an answer for in the documentation: With the libuv filesystem listener in the case of a file rename event, how do I get the old vs new filename? Currently it seems to fire the event twice in a row, first with the old filename and then with the new. Not very easy to use. Is there a better way? (Note: I’m listening recursively on a folder so I get events for many different files so I can’t
00:22:46  <andos>the path of the listener itself for anything).
00:26:01  <vtjnash>hd_: you can never write to a server, but then, it will never get read callback either since it's not connected anywhere (I have a PR open right now to fix the assertion error you may be seeing)
00:26:53  <vtjnash>andos: you might want to read the nodejs documentation to. the simple answer is that it depends on what events are delivered by the OS
00:27:59  <andos>vtjnash: Even if I’m not using nodejs? This is raw libuv (c library)
00:28:35  <vtjnash>yes. it's better documented in some cases (it used to effectively be the only documentation, now libuv has a bit of it's own too)
00:32:56  <andos>vtjnash: Thanks. The documentation seems better but doesn’t seem to mention anything about this specific case.
00:35:33  <andos>Great, and recusrsive watching is not available on linux :(
00:36:14  <vtjnash>true – you have to watch each folder separately I think?
00:36:37  <andos>Though it looks like it could be somewhat easily emulated by traversing the directory tree and watching all subdirectories. I wonder why libuv doesn’t do this automatically.
00:37:11  <vtjnash>Probably because nobody has offered to write the code
00:41:52  <vtjnash>Or if you aren't doing any other IO, you could instead use a library like https://github.com/emcrisostomo/fswatch
00:44:43  <andos>Guess I’ll have to use another cross platform lib for watching the filesystem. Every once in a while libuv generates no file change events at all despite no errors are generated. I had to work around a lot of funky things in libuv’s FS watching so far to get a higher “logical” level of watching. For example if a typical app overwrites a file but does it by saving a temporary file and then renaming the files at the end. This
00:44:44  <andos>triggers rename events but not file change events. My wrapper detected the “file swap” sequence and (in the case of a single-file listener) reinitialized the listener on the new file instead of the old. Thanks for the link to fswatch. I’ll have a look.
00:45:07  <vtjnash>All libraries will do that though
00:45:25  <vtjnash>That's just what the OS tells them to report
00:47:06  <andos>Yeah but you can do more logical reporting IMHO if you collect the FS events over a time period. Granted you don’t get immediate events.
00:49:54  <vtjnash>Sure, just don't expect it to happen just from adding libraries. And merging the event loops has the potential to be very frustrating, if you're using any other features from libuv
00:51:38  <andos>Yeah thats what I’m afraid od
00:51:44  <andos>*of
00:56:04  <andos>My current implementation is nearly perfect for my needs though. If I create an instance of my listener wrapper class on a root folder and then later create individual file listeners on files within that root folder it will instead reuse the file listener. This is why I needed broad support for recursive listening and the ability to get the old and new filename for a renamed file.
02:36:03  * andosquit (Quit: andos)
03:02:04  * joocain2quit (Ping timeout: 248 seconds)
03:04:13  * joocain2joined
03:25:23  * AtumT_quit (Remote host closed the connection)
05:11:22  * joocain2_joined
05:11:40  * joocain2quit (Ping timeout: 248 seconds)
05:21:54  * vtjnashquit (Remote host closed the connection)
05:30:44  * joocain2_quit (Remote host closed the connection)
05:30:59  * joocain2joined
06:22:17  * vtjnashjoined
06:27:06  * vtjnashquit (Ping timeout: 265 seconds)
09:18:25  * giraso806joined
09:18:26  * giraso806quit (Remote host closed the connection)
09:20:08  * edw903joined
09:20:09  * edw903quit (Remote host closed the connection)
09:35:47  * robob696joined
09:35:48  * robob696quit (Remote host closed the connection)
09:36:37  * matrx686joined
09:36:42  * matrx686quit (Remote host closed the connection)
09:40:25  * jerne167joined
09:40:32  * jerne167quit (Remote host closed the connection)
09:47:36  * ovc432joined
09:47:38  * ovc432quit (Remote host closed the connection)
09:49:13  * har966joined
09:49:14  * har966quit (Remote host closed the connection)
09:50:30  * |bastihas973joined
09:50:31  * |bastihas973quit (Remote host closed the connection)
09:59:01  * [sonia`ha626joined
09:59:07  * [sonia`ha626quit (Remote host closed the connection)
09:59:33  * duppl442joined
09:59:35  * duppl442quit (Remote host closed the connection)
10:02:57  * rendarjoined
10:03:34  * a-bu385joined
10:03:36  * a-bu385quit (Remote host closed the connection)
10:04:53  * patanel628joined
10:04:54  * patanel628quit (Remote host closed the connection)
10:07:45  * arago530joined
10:08:03  * arago530quit (Remote host closed the connection)
10:13:24  * susan-la467joined
10:13:43  * susan-la467quit (Remote host closed the connection)
10:33:36  * joocain2quit (Remote host closed the connection)
10:33:50  * joocain2joined
11:25:06  * mylesborinsquit (Quit: farewell for now)
11:25:37  * mylesborinsjoined
11:29:01  * steshawquit (Read error: Connection reset by peer)
11:34:03  * steshawjoined
11:47:58  * yara651joined
11:47:59  <yara651>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ HAPPY NIGGER DAY!! PLEASE SAY HI TO ALL THE DUMB NIGGERS IN #OFTC...quicktalkeh676te.onion/6697uocvewm: {slurp-libuv} jcrugzz tellnes pquerna bzoz othiym23 dbevenius rvagg niska lennartcl robertkowalski strike__ mylesborins mmalecki steshaw bengl txdv indutny ugexe
11:47:59  <yara651>▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ HAPPY NIGGER DAY!! PLEASE SAY HI TO ALL THE DUMB NIGGERS IN #OFTC...quicktalkeh676te.onion/6697uejdjit: niska mylesborins zkat mattloring {slurp-libuv} lennartcl trevnorris rendar brett19 iarna steshaw bzoz timotimo tarruda_ thefourtheye orangem
11:47:59  * yara651quit (Remote host closed the connection)
12:27:11  * vtjnashjoined
12:31:50  * vtjnashquit (Ping timeout: 255 seconds)
13:28:15  * vtjnashjoined
13:32:55  * vtjnashquit (Ping timeout: 265 seconds)
14:02:34  * steshawquit (Quit: Connection closed for inactivity)
14:28:57  * vtjnashjoined
14:33:49  * vtjnashquit (Ping timeout: 265 seconds)
14:45:18  * AtumTjoined
16:30:14  * vtjnashjoined
16:35:37  * vtjnashquit (Ping timeout: 265 seconds)
16:44:27  * joocain2_joined
16:45:00  * joocain2quit (Ping timeout: 248 seconds)
18:32:21  * vtjnashjoined
18:36:56  * vtjnashquit (Ping timeout: 265 seconds)
18:57:42  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
19:12:27  * eckquit (Quit: we out here)
19:13:26  * eckjoined
19:33:46  * vtjnashjoined
19:38:19  * vtjnashquit (Ping timeout: 265 seconds)
20:54:36  * joocain2_quit (Ping timeout: 248 seconds)
20:55:28  * joocain2joined
21:22:47  * steshawjoined
21:34:55  * vtjnashjoined
21:39:38  * vtjnashquit (Ping timeout: 265 seconds)
22:36:20  * vtjnashjoined
22:41:01  * vtjnashquit (Ping timeout: 265 seconds)
23:32:37  * vtjnashjoined