Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的文件夹结构如下:
/文件 /文件/上传
我需要将 /files/upload 挂载到 /files。
当用户上传文件到
/文件/上传
/文件
使用linux mount命令可以实现吗?
谢谢。
不,那将是相当递归的。
但是,您可以只拥有一个单独的进程/守护程序来手动移动/复制文件。
Linux 中有一种称为“fnotify”的机制,它可以让守护进程注册文件系统事件。即,每当有人将文件添加到 /file/upload 时,它都会告诉守护程序 - 允许您启动复制/移动。
但我会很高兴听到更多关于你为什么在承诺一种方法之前这样做的信息。