folder is not automatically created

Report and track bugs

folder is not automatically created

Postby rwendner » Thu Nov 17, 2016 3:35 pm

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
rwendner
 
Posts: 154
Joined: Wed Jul 15, 2015 4:35 pm

Re: folder is not automatically created

Postby zhouxinwei » Fri Dec 09, 2016 5:18 pm

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());
zhouxinwei
 
Posts: 208
Joined: Thu Jul 09, 2015 7:12 pm

Re: folder is not automatically created

Postby rwendner » Fri Dec 09, 2016 6:24 pm

thank you !
This is helpful to know.
rwendner
 
Posts: 154
Joined: Wed Jul 15, 2015 4:35 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron