make sure short description (root folder) ends with "/"

This commit is contained in:
jmillman
2015-09-28 16:19:30 -04:00
parent 4dacbbe083
commit ce930506bb
@@ -491,6 +491,7 @@ public class EventsRepository {
String rootFolder = StringUtils.substringBefore(StringUtils.substringAfter(parentPath, "/"), "/");
String shortDesc = datasourceName + "/" + StringUtils.defaultString(rootFolder);
shortDesc = shortDesc.endsWith("/") ? shortDesc : shortDesc + "/";
String medDesc = datasourceName + parentPath;
final TskData.FileKnown known = f.getKnown();