If a user has chosen a directory to say, export a rendition and they also want some renditions in a sub directory how would you make that subdirectory?
For example, user picks a folder:
var outputFolder = await fileSystem.getFolder();
But in that directory they also want to export to a sub directory. They provide a string of the subdirectory name, “icons”.
Can I pass in a path to get a sub directory object? And if it’s not created will this create it?
var outputFolder = await fileSystem.getFolder(); // user picks folder var subFolder = outputFolder.getEntry("icons"); // i get subfolder
Or could I get the outputFolder.nativePath and tack on the sub directory?
var subFolder = fileSystem.getFolder(outputFolder.nativePath + "/icons/"); // no prompt