![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Anyway to determine path being monitored with Win32::ChangeNotify?by PhillyR (Acolyte) |
on Nov 12, 2014 at 18:37 UTC ( #1107007=perlquestion: print w/replies, xml ) | Need Help?? |
PhillyR has asked for the wisdom of the Perl Monks concerning the following question: I have some code that is monitoring changes to files within a directory. Everything is great. my $notify = Win32::ChangeNotify->new($dir, 0, 'FILE_NAME LAST_WRITE SIZE') or die "Unable to create notification for $dir\n"; If a user changes the name of monitored directory, the notifications still work. However, now the $dir value is out of sync with the actual directory name. Is there a way to get the name of the folder being monitored by $notify? I'm thinking something like $notify->path();
Back to
Seekers of Perl Wisdom
|
|