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

workspace.findFiles() only finds files in the current workspace folder #1073

Open
volkanunsal opened this issue Jan 31, 2025 · 0 comments
Open

Comments

@volkanunsal
Copy link
Contributor

volkanunsal commented Jan 31, 2025

Given a workspace definition file like this:

{
  "folders": [
    {
      "path": ".",
      "name": "Root"
    },
    {
      "path": "/my/path/to/project",
      "name": "Proj"
    }
  ]
}

Consider a genaiscript called test.genai.mts in Root folder:

const inputs0 = await workspace.findFiles("**/*.md");
const inputs1 = env.files;

console.log(inputs0);
console.log(inputs1);

This is run on a file in the Proj folder. There are md files in the Proj folder, but workspace.findFiles() cannot find them.

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

1 participant