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

Add support for client-side VFS watch events #57

Open
2 of 5 tasks
andersevenrud opened this issue Jan 28, 2019 · 1 comment
Open
2 of 5 tasks

Add support for client-side VFS watch events #57

andersevenrud opened this issue Jan 28, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andersevenrud
Copy link
Member

andersevenrud commented Jan 28, 2019

When a filesystem cannot be watched by the server, the client should emit these events.

The server already emits the following event when a filesystem is set to watch (and the adapter can support this):

osjs/vfs:watch:change
{
  source: 'server',
  path: 'mount:/path/to/directory',
  action: 'unlinkDir',
  type: 'remove'
}

This is the event action/type map:

Action Type
add add
addDir add
unlink remove
unlinkDir remove
  • Implement into file dialog
  • Implement into basic application abstraction (pid)
  • Add file watcher
  • Add directory watcher
  • Implement into filemanager
@andersevenrud andersevenrud added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 28, 2019
@andersevenrud andersevenrud self-assigned this Jan 28, 2019
@andersevenrud
Copy link
Member Author

Related: os-js/osjs-server#12

@andersevenrud andersevenrud changed the title Make client-side VFS emit the internal watch events Fall back to client side "watcher" for VFS events when no server is available Apr 30, 2019
@andersevenrud andersevenrud changed the title Fall back to client side "watcher" for VFS events when no server is available Add support for client-side VFS watch events Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant