Sorry for the stupid question but i'm developing my first portableapps.
My app need to move a dir and a file:
All is OK.
At the start of program file and dir are moved as expected.
At the end of program file and dir return to their place.
When the application start the file and the folder are REMOVED from %PAL:AppDir%\Setting.
If during application works PC crash, USB problem, blackout etc i lose the data and the application would stop functioning without manually work of data recovering.
How can I avoid losing data?
Thanks for your attention.