Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 7, 2025
Prev Previous commit
Next Next commit
require C:\Windows exists in tests
  • Loading branch information
ethanndickson committed Mar 7, 2025
commit b2959dbc4531c2ac1e525f108593285b14d30abe
6 changes: 6 additions & 0 deletions agent/ls_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ func TestListFilesListDrives(t *testing.T) {
}
resp, err = listFiles(query)
require.NoError(t, err)
// System directory should always exist
require.Contains(t, resp.Contents, LSFile{
Name: "Windows",
AbsolutePathString: "C:\\Windows",
IsDir: true,
})

query = LSRequest{
// Network drives are not supported.
Expand Down