- Notifications
You must be signed in to change notification settings - Fork913
chore: add agent endpoint for querying file system#16736
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
9b1dfcb
to163a149
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
690da7c
to39aa907
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
285ae7f
to4c37100
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
17f8e93
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closescoder/internal#382
The API differs slightly from the RFC, in the interest of making consumption of the API agnostic to the host operating system of the agent.
Queries supply the requested path as an array:
Whilst the agent returns the requested path as an OS-specific path string but also as an array, both absolute. (
relativity = root
)Linux:
Windows:
API consumers need only append the
name
of a contents to the existing path array in order to query a subdirectory.To traverse backwards from
path: [], relativity=home
, theabsolute_path
array returned can be used, popping the last element off the array, and changing the relativity toroot
.Once the consumer has a target, they can use the
absolute_path_string
- at no point do they need to know the workspace OS.Example Usage: