Hi, anyone have a suggestion for something like co...
# announcements
d
Hi, anyone have a suggestion for something like copyRecursively which also supports retaining permissions? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/java.io.-file/copy-recursively.html
d
You probably have to use
java.nio.file.Files#copy
with
StandardCopyOption#COPY_ATTRIBUTES
, which should retain permissions on *nix. However this means you need to implement the recursion manually using
Files.walk
.
d
that’s what I thought I’d have to do. thanks!