Commit ce54b0af authored by Douglas Serson's avatar Douglas Serson

Allow passing input name with trailing separator to FC

parent b6471c9d
......@@ -36,6 +36,7 @@
#include <string>
#include <boost/algorithm/string.hpp>
#include <boost/program_options.hpp>
#include <LibUtilities/BasicUtils/FileSystem.h>
#include <LibUtilities/BasicUtils/Timer.h>
#include <FieldUtils/Module.h>
......@@ -327,6 +328,13 @@ int main(int argc, char* argv[])
int dot = tmp1[0].find_last_of('.') + 1;
string ext = tmp1[0].substr(dot, tmp1[0].length() - dot);
// Remove trailing separator from extension to allow
// folder inputs using file.fld/
if(ext.back() == fs::path::preferred_separator)
{
ext.pop_back();
}
if(ext == "gz")
{
string tmp2 = tmp1[0].substr(0,dot-1);
......
Markdown is supported
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