I recently used DonPAPI and wanted to export my results somewhere other than the home directory.
However, I got the following error:

After digging around, I realised that DonPAPI did not create a ‘recover’ folder but still tried to find it in the directory specified by the ‘-o’ argument. So, by adding a directory, it works again. The concerned code is the following:

Therefore, I would suggest adding a simple check to see if the ‘recover’ directory exists, and if it does not, add it.
Thanks and have a nice day !