Split FilePath into DirPath and FilePath

Where is this used? /curiosity