=============== idFileSystemLocal::ListFilesTree =============== */
| 1672 | =============== |
| 1673 | */ |
| 1674 | idFileList *idFileSystemLocal::ListFilesTree( const char *relativePath, const char *extension, bool sort, const char* gamedir ) { |
| 1675 | idHashIndex hashIndex( 4096, 4096 ); |
| 1676 | idStrList extensionList; |
| 1677 | |
| 1678 | idFileList *fileList = new idFileList(); |
| 1679 | fileList->basePath = relativePath; |
| 1680 | fileList->list.SetGranularity( 4096 ); |
| 1681 | |
| 1682 | GetExtensionList( extension, extensionList ); |
| 1683 | |
| 1684 | GetFileListTree( relativePath, extensionList, fileList->list, hashIndex, gamedir ); |
| 1685 | |
| 1686 | if ( sort ) { |
| 1687 | idStrListSortPaths( fileList->list ); |
| 1688 | } |
| 1689 | |
| 1690 | return fileList; |
| 1691 | } |
| 1692 | |
| 1693 | /* |
| 1694 | =============== |
no test coverage detected