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:
78482
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
perlkat [...] katspace.org
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
0.06
Fixed in:
(no value)



Subject: Detecting but not reacting to file moves
I'm using AnyEvent::Filesys::Notify with AnyEvent, and while it does detect and report file creation, file deletion and file modification... it doesn't report file movement when it is supposed to. Action: mv foo foo2 sleep 5 touch foo3 Expected outcome: Immediately, "foo is deleted, foo2 is created" Five seconds later, "foo3 is created" Actual outcome: Immediately, nothing happens. Five seconds later, "foo is deleted, foo2 is created, foo3 is created" In other words, it does remember what happened to foo and foo2, but it doesn't report it when it happens, it only reports it when something ELSE happens in the same directory. Which is definitely a problem, considering that one can't assume that something else WILL happen in that directory; the file movement should be reported as soon as it happens. Perl version: This is perl 5, version 16, subversion 0 (v5.16.0) built for x86_64-linux-thread-multi Linux version: Linux obsidian 3.4.4-2-ARCH #1 SMP PREEMPT Sun Jun 24 18:59:47 CEST 2012 x86_64 GNU/Linux Attached is a simple script which reproduces this behaviour.
Subject: testscript

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #78482] Detecting but not reacting to file moves
Date: Sat, 21 Jul 2012 17:56:43 -0400
To: bug-AnyEvent-Filesys-Notify@rt.cpan.org
From: Mark Grimes <mgrimes@cpan.org>
Thanks for the bug report. I've confirmed that there is some issue relating to Linux::Inotify2. I'm not sure if it is in L:I2, or in A:F:N's use of it. I'll look into more as time allows.
I've just uploaded a new version (0.07) to CPAN that will spot moved files on linux. Hope this works for you.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.