Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Sep 26, 2024
1 parent 30594f2 commit 8c48c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "de.oliver"
version = "32"
version = "33"
description = "Library for all Fancy plugins"

java {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/oliver/fancylib/jdb/JDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public JDocument getDocument(@NotNull String path) throws IOException {
* @throws IOException if an I/O error occurs during file reading
*/
public <T> List<T> getAll(@NotNull String path, @NotNull Class<T> clazz) throws IOException {
File directory = new File(baseDirectory, basePath + path);
File directory = new File(baseDirectory, path);
if (!directory.exists()) {
return new ArrayList<>();
}
Expand Down Expand Up @@ -132,6 +132,6 @@ public void delete(@NotNull String path) {
* @return the full file path
*/
private String createFilePath(@NotNull String path) {
return basePath + path + FILE_EXTENSION;
return path + FILE_EXTENSION;
}
}

0 comments on commit 8c48c12

Please sign in to comment.