Weird behavior in copyFileTo()

I’m using copyFileTo() to copy a text file, but according to the documentation it returns true if the operation succeeds. But I’m getting always true, even if I the directory does not exists and I get this message in the debug console “No such file or directory”. I’m using Juce 5.3.2 on OsX 10.12.6