Skip to content

Commit

Permalink
Merge pull request #23 from AlexandrouR/fixedDot
Browse files Browse the repository at this point in the history
Fixed issue with passing . as a path
  • Loading branch information
AlexandrouR authored Dec 4, 2019
2 parents cff0b7e + 324f6aa commit c2dfa60
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ private String generateRoot(final String path) {
return System.getProperty("user.home");
} else if (path.startsWith("~" + File.separator)) {
return System.getProperty("user.home") + path.substring(1);
} else if (path.equals(".")) {
return System.getProperty("user.dir");
} else if (path.startsWith(".")) {
return System.getProperty("user.dir") + path.substring(1);
}

return path;
}

Expand Down

0 comments on commit c2dfa60

Please sign in to comment.