Skip to content

Commit 6b02113

Browse files
committed
Update FileUtils.java
1 parent 2929a26 commit 6b02113

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/github/intisy/utils/utils/FileUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ public static void clean(File folder) {
148148
}
149149

150150
@SuppressWarnings("resource")
151-
public List<String> listResourceFiles(String folder) throws URISyntaxException {
152-
URL dirURL = getClass().getClassLoader().getResource(folder);
151+
public static List<String> listResourceFiles(String folder) throws URISyntaxException {
152+
URL dirURL = FileUtils.class.getClassLoader().getResource(folder);
153153
if (dirURL != null && dirURL.getProtocol().equals("file")) {
154154
Path path = Paths.get(dirURL.toURI());
155155
try {

0 commit comments

Comments
 (0)