mateogianolio / mateogianolio/sshync
sync not triggered in filechanges in subdirectories
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 808
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
With the following folder structure
```
├── package.json
└─┬ lib/
└── index.js
```
When modifying `lib/index.js`, nothing happens in sshync.
When modifying `package.json`, both files are synced.
Since both files are synced when I modify `index.js` I assume it is `fs.watch` that doesn't catch the recursive files ([although it is set to do so in the latest version](https://github.com/mateogianolio/sshync/blob/da3c9569248b5793222b93ceb2db8309cd6d94fd/sshync.js#L81)?)
Using version 1.1.1 and tested with node v0.10.46, v4.4.7, and v6.3.0
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 with sshync.js around line 81 and reproduce the issue using the package.json and lib/index.js structure described in the report. Compare file-change handling for the root file and the nested file across the reported Node versions. Done means modifying lib/index.js triggers the same sync behavior as modifying package.json.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100