Show File not working on Windows Compiled Plugin
-
Hi Everyone, I have a button with a showFile function that points to a folder in expansionFolder, works perfectly in Mac but is not working in the compiled plugin in Windows, (Works inside HISE).
Maybe im missing something or anyone else have the same problem? Thanks.
-
@Soundavid My first suspicion is it's got something to do with forward or back slashes. Got a snippet?
-
@d-healey I think my problem is that the folder is not being extracted in the install Callback, in Mac it opens the upper folder if the folder doesn't exist but in windows doesn't open any window :grinning_face_with_sweat:
-
@d-healey I have this lines in the install Callback
var m = expansionRootFolder.getChildFile("MidiFiles.zip"); var d = expansionRootFolder.getChildFile("MidiFiles"); Server.setBaseURL("https://"); Server.downloadFile(Url.replace("https://"), {}, m, downloadCallback); m.extractZipFile(d, true, extractionCallback);
I think the problem is that the files are not fully downloaded to be extracted, any ideas?
-
@Soundavid You can use
.createDirectory()
instead of.getChildFile()
. Does that help? -
@d-healey Im going to try that, thanks