Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardlink creation is not picked up #27

Open
ctsrc opened this issue Mar 20, 2020 · 1 comment
Open

hardlink creation is not picked up #27

ctsrc opened this issue Mar 20, 2020 · 1 comment
Assignees

Comments

@ctsrc
Copy link

ctsrc commented Mar 20, 2020

Hardlink creation is not noticed. Don't know if this is a bug in fsevent/fsevent-sys, or if it's just how the Apple File System Events API works, or if there is some other problem.

Regular file creation, and even deletion of hardlinks are noticed and reported though.

Steps to reproduce:

  1. On an APFS file system on macOS Catalina, create a directory that we will watch. As an example, let's do:

    mkdir -p ~/tmp/hello/world/
  2. Create a file somewhere outside of the watched directory structure.

    touch ~/tmp/hello/somefile
  3. Use the fsevent crate to watch the directory that we created in step 1 (~/tmp/hello/world/).

  4. Create a regular file in the watched directory.

    touch ~/tmp/hello/world/one
  5. Notice that the file creation is picked up as expected.

  6. Create a hardlink inside of the watched directory.

    cd ~/tmp/hello/world/ && ln ../somefile .
  7. The hardlink creation is not noticed by fsevent.

@octplane
Copy link
Owner

The fact the the deletion of hardlink is noticed but not their creation looks like a bug for me... 🔍

@octplane octplane self-assigned this Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants