Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the AnyEvent-Filesys-Notify CPAN distribution.

Report information
The Basics
Id: 91246
Status: resolved
Priority: 0/
Queue: AnyEvent-Filesys-Notify

People
Owner: Nobody in particular
Requestors: carsten [...] wolffcarsten.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Missing event when moving
Date: Sun, 08 Dec 2013 09:45:56 +0100
To: bug-AnyEvent-Filesys-Notify [...] rt.cpan.org
From: Carsten Wolff <carsten [...] wolffcarsten.de>
Hi, imagine two files test1 and test2 within a watched directory, which where created within the same second. When I `mv test1 test2`, no event for test2 will be generated by AEFN. The reason is, that AEFN uses a comparison of mtime to detect changes, but mtime only has a 1-sec. resolution. Cheers Carsten
Most filesystems only have second resolution on their timestamps, and repeatedly computing a hash for every file is too inefficient. So I think we are stuck with this behavior unless we parse the event data. The next release (already on github) will support parsing events on some platforms (Inotify2 initially).