Last active
August 29, 2015 14:03
-
-
Save mabushiisign/863052f0f927ace85787 to your computer and use it in GitHub Desktop.
Create SymbolicLink in Java7
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
// Link | |
Path link = Paths.get("link.html"); | |
// Target | |
Path target = Paths.get("test.html"); | |
try { | |
// Create SymbolicLink | |
Files.createSymbolicLink(link, target); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment