gruntjs / grunt-contrib-watch

Run tasks whenever watched files change.
http://gruntjs.com/
MIT License
1.98k stars 356 forks source link

file watcher #513

Closed scocth closed 6 years ago

scocth commented 8 years ago

Hello i'm a beginner for javascript. just started new. i need watch this directory C:\Windows\System32\spool\PRINTERS when any file added, script will be exit. this script watch this directory for a long time, when any file added this directory script will be finish. created spool files deleted less than a second. i need to catch any added file instant before than deleted. i dont need files name, size or anything. only when any files added, script will be exit

only i need catch this time, after that I'll get it done. not nececessary. only when file added this directory, script have been finished. thats enough

shama commented 6 years ago

Sorry I didn't understand the question. If you're still interesting in this please respond with a comment clarifying the question.