uppercase the drive name to check for UNC mapping

This commit is contained in:
Karl Mortensen 2016-02-04 15:20:55 -05:00
parent 9856b58b80
commit f0be8b10cf

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());
}