mafintosh / mafintosh/level-filesystem

Watcher handler called with zero arguments

Open
#3 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.