Comments (3)
Fixed in #46
from sicksync.
This doesn't yet work exactly like .gitignore. While the gitignore files are parsed correctly, chokidar's ignored
option works slightly differently that git's mechanism of ignoring paths from gitignore.
For example it doesn't work on a deeper level. If you have .cache
in your .gitignore
and src/something/.cache
it won't be ignored. It'll only ignore ./cache
(from root)
This has come up before too in #47 but I think this particular detail was missed earlier.
I think at least a warning should be added that while sicksync
does parse gitignore it doesn't work exactly like it.
Or it should try to make it work? In the above example if I wanted .cache
to be ignored a level deeper I'd have to make the rule **/.cache/**
, so should it just add **/
before every gitigore rule? I remember I made a PR for doing exactly this in paulmillr/chokidar#539 but, at least from chokidar's perspective, it might not have been a good idea.
What would be the best approach?
from sicksync.
This also doesn't work for bigSync
(at all, not just the issue in above comment)
edit: fixed in #89
from sicksync.
Related Issues (20)
- Adding a dir that's excluded fires adddir event HOT 1
- File deletion errors HOT 2
- Have a command executed on remote after sync? HOT 3
- Issues when running multiple sicksync instances HOT 3
- `sicksync add` should choose different ports HOT 5
- deleted files cause connection termination HOT 1
- Store config in project dir HOT 1
- Allow add/create-only mode - prevent deletion on server
- Not working on Windows again - it tried to sync files from root
- debounce? HOT 1
- Seeing a lot of .gitignore file changes HOT 2
- Lost connection
- deleted files causing issues HOT 1
- Allow syncing without defining projects HOT 3
- An option to disable rsync
- update command failed on EPERM HOT 5
- Refactor config HOT 1
- Operations should be queued in case of reconnection? HOT 1
- windows compatible paths
- Move to `jest`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sicksync.