Created
March 10, 2017 12:31
-
-
Save MaanooAk/97aed83e5067ca0942a8118f5eec58c7 to your computer and use it in GitHub Desktop.
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
/** | |
* 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