-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add filetree definitions #4
base: cpp
Are you sure you want to change the base?
Conversation
editor/src/filesystem/filetree.cpp
Outdated
std::filesystem::path path(path_str); | ||
std::error_code err; | ||
assert(std::filesystem::exists(path, err) && "Path did not exists"); | ||
std::list<FileTreeMap::iterator> list; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use list.
https://dzone.com/articles/c-benchmark-%E2%80%93-stdvector-vs
editor/src/filesystem/filetree.cpp
Outdated
|
||
std::shared_ptr<FileTree> tree; | ||
|
||
if (fs::path(p).filename() == ".git") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make a std::vector of excluded directory name and compare using it, rather than just a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably by putting the excluded directories inside the config file after config parser is done and then pushing the directories into an std::vector
No description provided.