The task is to create a new file in the existing resource folder (named "local", for example)
File file1 = new File("src/main/resources/" + "local" + "/" + "newFile.zip");
file1.createNewFile();
But nothing is created. And no exception is thrown.
I tried also create, by using absolute path.
File file1 = new File(File("src/main/resources/").getAbsolutePath() + "/" + "local" + "/" + "newFile.zip");
file1.createNewFile();
But with the same result.
What am I doing wrong?