Merge pull request #1945 from karlmortensen/uppercaseUNC

uppercase the drive name to check for UNC mapping
This commit is contained in:
Richard Cordovano 2016-02-05 12:01:21 -05:00
commit ee33e464c5

View File

@ -84,7 +84,7 @@ public class UNCPathUtilities {
String uncPath = null;
try {
String currentDrive = Paths.get(inputPath).getRoot().toString().substring(STARTING_OFFSET, REPLACEMENT_SIZE);
String uncMapping = drives.get(currentDrive);
String uncMapping = drives.get(currentDrive.toUpperCase());
if (uncMapping != null) {
uncPath = uncMapping + inputPath.substring(REPLACEMENT_SIZE, inputPath.length());
}