Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
6eb8588e
Commit
6eb8588e
authored
Apr 13, 2018
by
Romain Feron
Browse files
Tentative process_radtags fix for file names with . in them
parent
cbd417de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sequence_file.cpp
View file @
6eb8588e
...
...
@@ -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
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment