public String getFormattedTreePath() {
		TreePath treePath = getTreePath();
		StringBuilder path = new StringBuilder();
		for (Object pathElement : treePath.getPath()) {
			if (pathElement instanceof FSBNode node) {
				if (!path.isEmpty()) {
					path.append("/");
				}
				if (node instanceof FSBRootNode rootNode) {
					FSRL fsContainer = rootNode.getContainer();
					if (fsContainer != null) {
						path.append(fsContainer.getName());
					}
				}
				else {
					path.append(node.getFSRL().getName());
				}
			}
		}
		return path.toString();
	}
Returns the extension of this node's name, or "" if none

@return extension of this node's name, or "" if none
Ghidra/Features/Base/src/main/java/ghidra/plugins/fsbrowser/FSBNode.java