I have a situation wherein , if the user puts a file in the directory I need to do processing on the file , and rest of the time s +leep(). How do I detect that there is a change in directory content e +fficiently ( i.e., without listing ). while(1) { probe_dir_changes(......); sleep(1); }
In reply to Checking Directory contents in Perl by onkar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |