Best approach to detecting a move or rename to a file in Linux?

后端 未结 3 1345
南旧
南旧 2021-01-13 18:25

Some solution could probably be applicable to Windows, however I am not familiar with the Windows OS, so this will be Linux focused.

As far as I understand, Unix fil

3条回答
  •  孤街浪徒
    2021-01-13 19:10

    Notice that this will be filesystem dependent. It is doable in ext3 and similar filesystems, but maybe not in others. This is probably also a rather resource hungry operation since it needs to scan through the disk to check all inodes, so you need to look up a solution to be notified when inodes are changed (instead of scanning through them all).

提交回复
热议问题