I would like to create a folder in the directory the user is running their code from.
Something like this works fine usually:
val path = Paths.get(".\folderName\")
if(!(Files.exists(path) && Files.isDirectory(path)))
and creates a folder “folderName” relative to the project directory.
But if I publish the code as a library and try to do this again it fails to create the directory.
Is there a way to create a folder relative to the user directory from a library?