Commit 30be6ac399939eb71dac51e62df2f7f1df2a2040

Authored by Jordi Inglada
1 parent 7c36a903
Exists in master

Remove \" from file names in list_files

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
include/cbutils.h
... ... @@ -130,7 +130,9 @@ std::vector<std::string> list_files(const std::string& dir,
130 130 fname << p;
131 131 if(std::regex_search(fname.str(), regex_pattern))
132 132 {
133   - result.emplace_back(fname.str());
  133 + auto clean_fname = fname.str();
  134 + boost::algorithm::erase_all(clean_fname, "\"");
  135 + result.emplace_back(clean_fname);
134 136 }
135 137 }
136 138  
... ...