Commit 6eb8588e authored by Romain Feron's avatar Romain Feron
Browse files

Tentative process_radtags fix for file names with . in them

parent cbd417de
......@@ -27,7 +27,13 @@ std::vector<InputFile> get_input_files(const std::string& input_dir_path) {
current_file = dir_content->d_name;
split_name = split(current_file, ".");
size_t s = split_name.size();
extension = "";
if (s > 2) {
extension += split_name[s-1] + "." + split_name[s - 2];
} else if (s == 2) {
extension = "." + split_name[1];
}
// Careful: this will fail if the file name contains "." ... TODO: solve this problem
for (uint i=1; i<split_name.size(); ++i) extension += "." + split_name[i];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment