Skip to content

Conversation

@daohu527
Copy link
Contributor

@daohu527 daohu527 commented Oct 25, 2025

refactor common file API use modern c++17 API

motivation: ApolloAuto/apollo#15740

@daohu527 daohu527 linked an issue Oct 25, 2025 that may be closed by this pull request
@daohu527 daohu527 requested a review from lykling October 25, 2025 06:45
@daohu527 daohu527 force-pushed the 38-bug-logic-error-in-deletefile branch 3 times, most recently from c7c4f0d to 6e5a402 Compare October 25, 2025 10:05
@daohu527 daohu527 force-pushed the 38-bug-logic-error-in-deletefile branch from 6e5a402 to ff76da4 Compare October 25, 2025 10:15
Copy link
Member

@lykling lykling left a comment

Choose a reason for hiding this comment

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

glob方法实现的效果和传统定义的不一致,建议再看下
其它的问题不大,建议对删除的接口增加一个给用户的迁移的引导

case ')':
case '{':
case '}':
case '[':
Copy link
Member

Choose a reason for hiding this comment

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

glob有[]和{}的语法,直接转义只能匹配字符[]{}

case '}':
case '[':
case ']':
case '\\':
Copy link
Member

Choose a reason for hiding this comment

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

特殊case,如果匹配模式是是*.xxx 会被转成 \.*.xxx,匹配不到正确的结果

@daohu527 daohu527 merged commit e1b4e86 into main Oct 25, 2025
1 check failed
daohu527 added a commit that referenced this pull request Oct 25, 2025
* feat: refactor common file API

* chore: add note about Glob

chore: fix commit error in file.h (#40)

* feat: refactor common file API

chore: fix commit error in file.h

* chore: fix commit error in file.h
WildBeast114514 pushed a commit to WildBeast114514/apollo-lite that referenced this pull request Oct 28, 2025
daohu527 pushed a commit that referenced this pull request Oct 31, 2025
* feat(tools): migration of cyber visualizer on jetson

* Clean up Qt5 installation and add dependencies

Remove old Qt5 installation and update dependencies.

* Revert "feat: refactor common file API (#39)"

This reverts commit 40c9f7d.

---------

Co-authored-by: WildBeast114514 <[email protected]>
daohu527 pushed a commit that referenced this pull request Nov 2, 2025
daohu527 pushed a commit that referenced this pull request Nov 6, 2025
* feat(tools): migration of cyber visualizer on jetson

* Clean up Qt5 installation and add dependencies

Remove old Qt5 installation and update dependencies.

* Revert "feat: refactor common file API (#39)"

This reverts commit 40c9f7d.

* fix(tools): display issue of camera

---------

Co-authored-by: WildBeast114514 <[email protected]>
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.

[Bug]: Logic error in DeleteFile

3 participants