public String getWikiUrl ( String filePath ) { String wikiUrl = null ; String filesDir = getFitNesseFilesSectionDir ( ) ; if ( filePath . startsWith ( filesDir ) ) { String relativeFile = filePath . substring ( filesDir . length ( ) ) ; relativeFile = relativeFile . replace ( ' ' , ' ' ) ; wikiUrl = "files" + relativeFile ; } return wikiUrl ; }
Converts a file path into a relative wiki path if the path is insides the wiki s files section .