We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/
FileUtility#getResourceFiles(...)
1 parent ca070da commit b10e8b2Copy full SHA for b10e8b2
1 file changed
src/main/java/xyz/srnyx/javautilities/FileUtility.java
@@ -157,6 +157,7 @@ public static void walkAndCopy(@NotNull Path source, @NotNull Path destination)
157
*/
158
@NotNull
159
public static List<String> getResourceFiles(@NotNull String resourcePath) {
160
+ if (resourcePath.startsWith("/")) resourcePath = resourcePath.substring(1);
161
if (!resourcePath.endsWith("/")) resourcePath += "/";
162
final List<String> files = new ArrayList<>();
163
0 commit comments