numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

export does not create the target folder automatically #183

Closed numeredev closed 7 months ago

numeredev commented 7 months ago

DESCRIPTION

Describe the bug The command export (and probably save as well) does not create the target folder by itself.

To Reproduce Steps to reproduce the behavior:

  1. Try to export some table to a not-yet-existing folder
  2. See error

Expected behavior export should create the target folder by itself

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

That's totally easy to resolve. The command uses CommandLineParser::getFileParameterValue() instead of CommandLineParser::getFileParameterValueForSaving(), which will create the necessary folder structures automatically. Can be fixed by using the correct member function.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST