Skip to content

Conversation

@Pouare514
Copy link
Contributor

// ❌ Code bugué (Windows incompatible)
const dir = join(context.knowledgeRoot, jsonPath).replace(//[^/]+$/, '');

// ✅ Code corrigé (cross-platform)
const dir = dirname(fullPath);

// ❌ Code bugué (Windows incompatible)
const dir = join(context.knowledgeRoot, jsonPath).replace(/\/[^/]+$/, '');

// ✅ Code corrigé (cross-platform)
const dir = dirname(fullPath);
@sofianedjerbi
Copy link
Owner

Thanks @Pouare514

@sofianedjerbi sofianedjerbi changed the title Add files via upload fix: use dirname instead of extraction for windows Aug 5, 2025
@sofianedjerbi sofianedjerbi merged commit ad59b66 into sofianedjerbi:main Aug 5, 2025
16 of 17 checks passed
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.

2 participants