Last active
September 4, 2023 07:17
-
-
Save sogaiu/cfa1484d9c3ca875b13f0c3ac75c6c73 to your computer and use it in GitHub Desktop.
symbolic link creation in clojure via java interop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; echo "hi" > /tmp/hi | |
(java.nio.file.Files/createSymbolicLink | |
(java.nio.file.Paths/get "/tmp/mylink" | |
(into-array String [])) | |
(java.nio.file.Paths/get "/tmp/hi" | |
(into-array String [])) | |
(into-array java.nio.file.attribute.FileAttribute [])) | |
;; unfortunately, this is not likely to work in windows until jdk >= 13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment