My server guy wants to use apache, and also he wants to program a daemon to control automated file deletion, along with other automated file tasks. Can node.js automate the deletion of files if they reach a certain length of time? And in addition, can node.js time-stamp, because my server guy swears it cannot, and that “daemons are superior for automated file tasks!”
Thank you.
Sorry if my question isn’t very comprehensible, I’m in a hurry to get this answered.
Yes, here you can find how.
For such tasks, I think that cron job that executes some script (it can be a nodejs, php, perl, sh, whatever) can work just fine.
At the end, depends on your problem. Daemon sound like an overkill, but it might be the only approach.