Skip to content

Instantly share code, notes, and snippets.

@MaanooAk
Created March 10, 2017 12:31
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 MaanooAk/97aed83e5067ca0942a8118f5eec58c7 to your computer and use it in GitHub Desktop.
Save MaanooAk/97aed83e5067ca0942a8118f5eec58c7 to your computer and use it in GitHub Desktop.
/**
* Moves a given path form a folder to an other.
*/
public static Path movePath(Path path, Path from, Path to) {
return to.resolve(from.relativize(path));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment