correctly detecting build as a dir.
This commit is contained in:
parent
94eda93306
commit
ee3dc7da5c
|
@ -5,15 +5,16 @@
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
bool TreeStructurer::should_ignore_dir(const std::string& dirname) {
|
bool TreeStructurer::should_ignore_dir(const std::string& dirname) {
|
||||||
return dirname[0] == '.' ||
|
return dirname[0] == '.' ||
|
||||||
|
dirname[0] == '_'||
|
||||||
dirname.find("build") != std::string::npos ||
|
dirname.find("build") != std::string::npos ||
|
||||||
dirname == "venv" ||
|
dirname == "venv" ||
|
||||||
dirname == "myenv";
|
dirname == "myenv" ||
|
||||||
|
dirname == "build";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TreeStructurer::should_ignore_file(const std::string& filename) {
|
bool TreeStructurer::should_ignore_file(const std::string& filename) {
|
||||||
return filename[0] == '.' ||
|
return filename[0] == '.';
|
||||||
filename.find("build") != std::string::npos;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string TreeStructurer::create_indent(int level) {
|
std::string TreeStructurer::create_indent(int level) {
|
||||||
|
|
Loading…
Reference in New Issue