阅读背景:

检测节点中的文件更改。js通过watchFile

来源:互联网 

I want to detect changes for a file, if the file changes, I will use child_process to execute a scp command to copy the file to a server.I looked up node.js documentation, the fs.watchFile function seems do what I want to do, but when I tried it, somehow it just doesn't work as I expected. The following code were used:I want to detect changes for a file, if the fil




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: