for example... `src/main/kotlin/main.kt` > ``` ...
# announcements
s
for example...
src/main/kotlin/main.kt
>
Copy code
val src = Heirachy.Source().directory[0].direcctory[0].directory[0].file[0].sourceCode

val file = Heirachy.Source().directory[0].directory[0].directory[0].file[0].fileName
println("source code for $file is\n$src\n")
g
this looks just as file tree
on Kotlin JVM you already have all required APIs to work with files and dirs
s
i meant, for when the original source code is unavailable, for example, if the JAR or executable is copied to another machine
g
You don’t have access to Kotlin source code on runtime, if this is what you need
s
such that the generated Heirachy class (or whatever it provides) provided via such plugin will contain the complete directory and file structure of the directory including each file's contents
g
You can just generate code
s
i know
g
or just dump source tree to file and than pack it to program
s
but im asking if there are any libraries or plugins that ALREADY do this before i decide to implement it myself
g
It looks for me as very strange feature, so I very much doubt that something like this exist
s
;-;