Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Sep 17, 2025

Normalizes directory paths that start with './' by removing the prefix, matching the behavior already implemented in the Read file tool for consistency.

This ensures both tools handle relative paths consistently when users specify paths starting with './'.


Summary by cubic

Normalize the List Files tool to strip the "./" prefix from dirpath so "./foo" is treated as "foo", matching the Read file tool. This makes previews, errors, and listings consistent for relative paths.

Normalizes directory paths that start with './' by removing the prefix,
matching the behavior already implemented in the Read file tool for
consistency.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
@continue continue bot requested a review from a team as a code owner September 17, 2025 01:13
@continue continue bot requested review from RomneyDa and removed request for a team September 17, 2025 01:13
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 17, 2025
@github-actions
Copy link

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

return `Error: Directory does not exist: ${args.dirpath}`;
let { dirpath } = args;
if (dirpath.startsWith("./")) {
dirpath = dirpath.slice(2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this will work since dirpath.slice(2) will result in relative path that won't be properly resolved (will get "got path.d relative" error)

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 22, 2025
@RomneyDa RomneyDa closed this Sep 25, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Sep 25, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants