Skip to content

Commit

Permalink
Merge pull request #25 from simplecloudapp/fix/directory-repository-r…
Browse files Browse the repository at this point in the history
…esource-loading

fix: resource directory resource loading
  • Loading branch information
PrexorJustin authored Jan 31, 2025
2 parents 9f9d38f + be30ed1 commit 09c843e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class DirectoryRepository<I : Any, T : Any> constructor(
val targetDirectory = File(directory.toUri()).apply { mkdirs() }
val last = directory.pathString.split('/').last()

logger.info("Loading repository from $last")

val resourceUrl = DirectoryRepository::class.java.getResource("/$last") ?: run {
logger.warn("$last folder not found in resources")
return
Expand Down Expand Up @@ -127,6 +129,7 @@ class DirectoryRepository<I : Any, T : Any> constructor(
}
}
filesProcessed++
logger.info("Successfully extracted: ${entry.name}")
logger.debug("Successfully extracted: ${entry.name}")
} catch (e: Exception) {
filesFailed++
Expand Down

0 comments on commit 09c843e

Please sign in to comment.