Skip Menu |

This queue is for tickets about the Win32-FileNotify CPAN distribution.

Report information
The Basics
Id: 59791
Status: resolved
Priority: 0/
Queue: Win32-FileNotify

People
Owner: Nobody in particular
Requestors: MGinsburg-PerlBugs [...] markginsburg.com
Cc:
AdminCc:

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



Last Modified time delta is compared with file size which causes false notifications whenever a file that is in the same directory as the file of interest is changed. sub _is_changed{ my ($self) = @_; my $return = 0; if( -s $self->_file != $self->_modified ){ <=== BAD CODE if( -M $self->_file != $self->_modified ){ <=== RECOMMENDED CHANGE $return = 1; $self->_modified( $self->_file ); } return $return; }
Hi Mark, many thanks for your bugreport. This issue is fixed with this commit: http://github.com/reneeb/Win32-FileNotify/commit/196a63ecabbd22de93c1b0883d195327a5c3bce2 I will publish a new release in a few hours. I'll let you know when it is uploaded to CPAN. - Renée
Hi, the new version is on CPAN: http://search.cpan.org/~reneeb/Win32-FileNotify-0.3/ Thanks again for your report. - Renée