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

Modification is reported as creation when edited with gedit #98

Open
fxha opened this issue Feb 21, 2022 · 0 comments
Open

Modification is reported as creation when edited with gedit #98

fxha opened this issue Feb 21, 2022 · 0 comments

Comments

@fxha
Copy link

fxha commented Feb 21, 2022

A file modification is reported as creation when saving via temporary file (rename), like gedit does. This case is successfully reported in chokidar as one atomic change.

Example with chokidar raw log and parcel watcher:

chokidar raw: rename .goutputstream-K1W8H1 { watchedPath: '/tmp/testDir' }
chokidar raw: change .goutputstream-K1W8H1 { watchedPath: '/tmp/testDir' }
chokidar raw: change .goutputstream-K1W8H1 { watchedPath: '/tmp/testDir' }
@parcel/watcher: [
  {
    path: '/tmp/testDir/.goutputstream-K1W8H1',
    type: 'create'
  }
]

chokidar raw: rename .goutputstream-K1W8H1 { watchedPath: '/tmp/testDir' }
chokidar raw: rename test.txt { watchedPath: '/tmp/testDir' }
chokidar raw: change test.txt {
  watchedPath: '/tmp/testDir/test.txt'
}
chokidar raw: rename test.txt {
  watchedPath: '/tmp/testDir/test.txt'
}
chokidar raw: rename test.txt {
  watchedPath: '/tmp/testDir/test.txt'
}
@parcel/watcher: [
  {
    path: '/tmp/testDir/.goutputstream-K1W8H1',
    type: 'delete'
  },
  {
    path: '/tmp/testDir/test.txt',
    type: 'create'
  }
]
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

1 participant