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 /files endpoint for manipulating remote files in workspace #24

Merged
merged 8 commits into from
Aug 29, 2021

Conversation

kazk
Copy link
Member

@kazk kazk commented Aug 28, 2021

  • Only enabled when sync
  • Only allow manipulating files under cwd
  • Supports write, remove, and rename
    • Any directories are created automatically
    • Empty parents after removing and renaming a file are removed automatically
    • write creates a file if it doesn't exist
    • remove errors if the file doesn't exist
    • rename can rename directories as well
  • The response includes changes for DidChangeWatchedFiles notification

- Only enabled when `sync`
- Only allow manipulating files under `cwd`
- Supports `write`, `remove`, and `rename`
  - Any directories are created automatically
  - `write` creates a file if it doesn't exist
  - `remove` errors if the file doesn't exist
  - `rename` can rename directories
@kazk kazk force-pushed the files-endpoint branch 2 times, most recently from 5b0dfc4 to 31703d3 Compare August 29, 2021 05:21
@kazk kazk merged commit 99030db into master Aug 29, 2021
@kazk kazk deleted the files-endpoint branch August 29, 2021 05:48
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

Successfully merging this pull request may close these issues.

1 participant