Created
August 2, 2018 06:25
-
-
Save wumpz/29d4724271934647bd4738352d2d30a4 to your computer and use it in GitHub Desktop.
relative path of two File instances in java
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
new File(baseDirectory).toURI().relativize(new File(subpathItem).toURI()).getPath() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment