if (directoryInstance.getParentFile() != null) {
DirectoryDescriptor parent = assertDirectory(directoryInstance
.getParent(), target);
result = new DirectoryDescriptor(directoryInstance.getName(),
parent, !target, target);
parent.addChild(result);
} else {
// consider, for whatever reason the getName() for a drive (C:\)
// returns an empty string.
String rootName = directoryInstance.getAbsolutePath();
if (rootName.endsWith(File.separator)) {