private String formatRootPathForDisplay(File root) {
			String s = root.getPath();
			return s.length() > 1 && s.endsWith("\\") ? s.substring(0, s.length() - 1) : s;
		}
Returns the string path of a file system root, formatted so it doesn't have a trailing
backslash in the case of Windows root drive strings such as "c:\\", which becomes "c:"

@param root file location
@return string path, formatted to not contain unneeded trailing slashes, example "C:"
  instead of "C:\\"
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/LocalFileChooserModel.java