[SOLVED] Writing permission debug vs release

Apologies if this is a newbie question…
I’m trying to write and move some files around with JUCE.
I got it to work properly as I wanted on debug, however when I build release it fails creating some directories.

To be a bit more specific, It’s something like this:

auto workingFolder = juce::File::getCurrentWorkingDirectory();
auto copyFolder = workingFolder.getSiblingFile (workingFolder.getFileNameWithoutExtension() + "_copy").getNonexistentSibling();
jassert (copyFolder.createDirectory());
if (! workingFolder.copyDirectoryTo (copyFolder))

Any ideas on how to solve this? Thank you in advance

jassert is a debug directive and won’t be compiled in a release version, therefore createDirectory() will not be there in release build.

1 Like

Oh… Thank you so much! :sweat_smile: :+1:
I knew it was a noob question