Install libfile-monitor-lite-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libfile-monitor-lite-perl
Description:
module for monitoring file creation, deletion, and modification
File::Monitor::Lite is an alternative implementation of File::Monitor. While File::Monitor cannot detect file creation (unless you declare file name first), it uses File::Find::Rule to rescan files every time when $monitor->check() is executed.
Homepage: https://metacpan.org/release/File-Monitor-Lite
Version: 0.652003-1
Section: universe/perl