Skip to content

Instantly share code, notes, and snippets.

@mabushiisign
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabushiisign/863052f0f927ace85787 to your computer and use it in GitHub Desktop.
Save mabushiisign/863052f0f927ace85787 to your computer and use it in GitHub Desktop.
Create SymbolicLink in Java7
// 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