func (d DirectoryMgr) Current(ft FileType) (path string) { path = d.current[d.objTypeIndex(ft)] if !tool.IsSubPath("/", path) { path = fmt.Sprintf("%s/%s", d.xmlRoot, path) } return }
func (d *DirectoryMgr) FilenameToShow(filepath string) (prefix, filename string) { // TODO: evaluate FREESP_SEARCH_PATH if tool.IsSubPath(d.xmlRoot, filepath) { filename = tool.RelPath(d.xmlRoot, filepath) prefix = d.xmlRoot } else { filename = filepath } return }