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

Unify events from backends #24

Open
mveytsman opened this issue Jul 20, 2017 · 1 comment
Open

Unify events from backends #24

mveytsman opened this issue Jul 20, 2017 · 1 comment

Comments

@mveytsman
Copy link
Collaborator

Longterm goal: it would be nice to define a consistent API from all the backends.

https://docs.google.com/document/d/1-GQrFdDVrA57-ce0kbzSth4lQqfOMMRKpih3hPJmvoU/edit might be a good starting place for research.

/cc @whitfin

@falood
Copy link
Owner

falood commented Jul 29, 2017

now we have a file event provider with default events.
when I modify a file /tmp/fs/test I got such messages after save the file in vim:

{:file_event, #PID<0.221.0>, {"/private/tmp/fs/.test.swpx", [:created, :removed]}}
{:file_event, #PID<0.221.0>, {"/private/tmp/fs/.test.swp", [:created, :removed, :changeowner]}}
{:file_event, #PID<0.221.0>, {"/private/tmp/fs/25454", [:created, :removed, :changeowner]}}
{:file_event, #PID<0.221.0>, {"/private/tmp/fs/test",  [:created, :inodemetamod, :renamed, :modified, :changeowner]}}
{:file_event, #PID<0.221.0>, {"/private/tmp/fs/test~", [:removed, :renamed]}}
{:file_event, #PID<0.221.0>, {"/private/tmp/fs/.test.swp", [:created, :removed, :modified, :changeowner]}}

This test is run under macos, I'm sure there will be different in other os.
is it necessary to make a middle to make sure the same result returned for all backends and all os?

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

2 participants