We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2929a26 commit 6b02113Copy full SHA for 6b02113
1 file changed
src/main/java/io/github/intisy/utils/utils/FileUtils.java
@@ -148,8 +148,8 @@ public static void clean(File folder) {
148
}
149
150
@SuppressWarnings("resource")
151
- public List<String> listResourceFiles(String folder) throws URISyntaxException {
152
- URL dirURL = getClass().getClassLoader().getResource(folder);
+ public static List<String> listResourceFiles(String folder) throws URISyntaxException {
+ URL dirURL = FileUtils.class.getClassLoader().getResource(folder);
153
if (dirURL != null && dirURL.getProtocol().equals("file")) {
154
Path path = Paths.get(dirURL.toURI());
155
try {
0 commit comments