My application downloads some plain CSV files from a remote server, and I want to store them into resource/files
path.
The files folder is initially empty, and when I try to select the folder with the getResource method of the classLoader, I always get null as the return value.
URL localUrl = MyClass.class.getCassLoader().getResource("files"); // = null
But once a file is present in the files folder the above code gives me the location of the folder.
Is there a way in Java to select an empty folder within the resource folder? I am using Java 11.