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

Add filetree definitions #4

Open
wants to merge 4 commits into
base: cpp
Choose a base branch
from
Open

Add filetree definitions #4

wants to merge 4 commits into from

Conversation

mochidaz
Copy link
Member

No description provided.

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;
Copy link
Member

Choose a reason for hiding this comment

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


std::shared_ptr<FileTree> tree;

if (fs::path(p).filename() == ".git") {
Copy link
Member

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

Copy link
Member Author

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

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.

3 participants