FileLister: minor update, append char instead of string
This commit is contained in:
parent
0d97fddc1d
commit
2ad159a45a
|
@ -196,7 +196,7 @@ static void addFiles2(std::map<std::string, std::size_t> &files,
|
||||||
(std::strcmp(dir_result->d_name, "..") == 0))
|
(std::strcmp(dir_result->d_name, "..") == 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
new_path = path + "/" + dir_result->d_name;
|
new_path = path + '/' + dir_result->d_name;
|
||||||
|
|
||||||
if (dir_result->d_type == DT_DIR) {
|
if (dir_result->d_type == DT_DIR) {
|
||||||
if (recursive && !ignored.Match(new_path)) {
|
if (recursive && !ignored.Match(new_path)) {
|
||||||
|
|
Loading…
Reference in New Issue