TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to signal an already running process whenever some file is renamed

1 点作者 db42超过 14 年前
I am working on a project to manage files. The idea is to transfer information about a file's location through file name itself. So, whenever a user renames a file, the process will scan the filename and move it to the desired location. But I don't know how to signal the process whenever any file is renamed.

1 comment

zimpenfish超过 14 年前
Isn't this the kind of thing that FAM was invented for?<p><a href="http://oss.sgi.com/projects/fam/" rel="nofollow">http://oss.sgi.com/projects/fam/</a> <a href="http://en.wikipedia.org/wiki/File_alteration_monitor" rel="nofollow">http://en.wikipedia.org/wiki/File_alteration_monitor</a><p>(Or specific things like inotify on Linux: <a href="http://en.wikipedia.org/wiki/Inotify" rel="nofollow">http://en.wikipedia.org/wiki/Inotify</a> )
评论 #1763725 未加载
评论 #1771371 未加载