public FileModel getChildFile ( ArchiveModel archiveModel , String filePath ) { filePath = FilenameUtils . separatorsToUnix ( filePath ) ; StringTokenizer stk = new StringTokenizer ( filePath , "/" ) ; FileModel currentFileModel = archiveModel ; while ( stk . hasMoreTokens ( ) && currentFileModel != null ) { String pathElement = stk . nextToken ( ) ; currentFileModel = findFileModel ( currentFileModel , pathElement ) ; } return currentFileModel ; }
Finds the file at the provided path within the archive .