mafintosh / mafintosh/level-filesystem
Watcher handler called with zero arguments
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 166
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/mafintosh/level-filesystem/blob/master/watchers.js#L40
Watcher handler should be passed two stat objects.
spec: http://nodejs.org/api/fs.html#fs_fs_watchfile_filename_options_listener
``` js
fs.watchFile('message.text', function (curr, prev) {
console.log('the current mtime is: ' + curr.mtime);
console.log('the previous mtime was: ' + prev.mtime);
});
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at watchers.js#L40 and compare the watcher callback behavior with the Node.js fs.watchFile specification linked in the issue. Confirm the handler receives current and previous stat objects, then verify the callback matches the documented example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100