0

Juce C++ not finding Files in directory

I believe I have followed the documentation correctly, when trying to find files from my juce APP it simply does not find them. This is my code: juce::File dirToSearch("/Users/charles/Documents/OOP%20Course/UniCourse/OttoDecks/tracks"); auto presetFiles = testFile.findChildFiles(juce::File::TypesOfFileToFind::findFiles, false, "*"); std::cout << presetFiles.size() << std::endl; std::cout << "test: " << presetFiles[1].getFileName() << std::endl; And this is returned: 0 test: Any help would be appreciated.

4th Sep 2022, 9:41 PM
Charlie Crease-huggett
1 Answer
0
Have you tried replacing the "%20" portion with a single space in the directory name?
12th Apr 2023, 9:30 PM
ЕĐČĐłĐ”ĐœĐžĐč
ЕĐČĐłĐ”ĐœĐžĐč - avatar