Page 1 of 1

folder is not automatically created

PostPosted: Thu Nov 17, 2016 3:35 pm
by rwendner
Dear Xinwei,

I was of the impression that now folders are automatically created if the requested output filename includes a subfolder in the relative path.

This seems not to work with the GaugeUD subroutine for the paraview plots ?
Can you please fix this in the subroutine or provide the information which method to use in order to check the path and create the folders if needed ?

Thanks
Roman

Re: folder is not automatically created

PostPosted: Fri Dec 09, 2016 5:18 pm
by zhouxinwei
Your code is fixed in Gitlab.

Below shows how to create the file with directory structure:
Code: Select all
string fn = parfilen + "-" + getName() + ".vtu";
prm->changeToAbsolutePath(fn); // this line will create the proper directory when needed
File *plt = prm->createParaviewFile(fn.c_str());

Re: folder is not automatically created

PostPosted: Fri Dec 09, 2016 6:24 pm
by rwendner
thank you !
This is helpful to know.