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

Fixed the problem of pathjoin function splicing paths when basepath is the root directory. #2118

Merged
merged 5 commits into from
Mar 27, 2025

Conversation

linrunqi08
Copy link
Collaborator

@linrunqi08 linrunqi08 commented Feb 28, 2025

问题描述:
文件采集,路径配置成/data*/xx 这种的时候,basepath就是/,在之前的场景下,PathJoin函数会返回//dataA这样的数据,导致跟真实的文件路径匹配不上

修复方案:
如果basepath最后一位是/,则PathJoin则不额外拼接/

@linrunqi08 linrunqi08 requested a review from messixukejia March 27, 2025 02:37
@yyuuttaaoo yyuuttaaoo merged commit 0fded6c into main Mar 27, 2025
15 checks passed
@yyuuttaaoo yyuuttaaoo deleted the feature/taiye/fix_path branch March 27, 2025 07:10
linrunqi08 added a commit that referenced this pull request Apr 1, 2025
@henryzhx8 henryzhx8 added the bug Something isn't working label Apr 1, 2025
@henryzhx8 henryzhx8 added this to the v3.0 milestone Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants