# IPlatformFile::FindFilesRecursively found nothing at ProjectSavedDir on Android

**URL:** <https://forums.unrealengine.com/t/iplatformfile-findfilesrecursively-found-nothing-at-projectsaveddir-on-android/412144>\
**Category:** Mobile\
**Tags:** UE4-18, unreal-engine, Android, CPP, question\
**Created:** [December 13, 2017, 10:12am UTC](https://forums.unrealengine.com/t/iplatformfile-findfilesrecursively-found-nothing-at-projectsaveddir-on-android/412144 "2017-12-13T10:12:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wingedrobin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wingedrobin](https://forums.unrealengine.com/u/wingedrobin)\
**Post date:** [December 13, 2017, 10:12am UTC](https://forums.unrealengine.com/t/iplatformfile-findfilesrecursively-found-nothing-at-projectsaveddir-on-android/412144/1 "2017-12-13T10:12:11Z")

</div>

Hi, I found an API `IPlatformFile::FindFilesRecursively` that can be use in 4.18. And I want to get all pak files under the /Saved/Paks/ folder (I put all pak files there for auto mounted). So I try to use this api to find all file under ProjectSavedDir. But I got an empty array as return value. Below is the code snip:

```
TArray< FString > FoundFilenames ;
IPlatformFile& PlatformFile = FPlatformFileManager :: Get( ).GetPlatformFile( ) ;
FString Path = FString :: Printf( TEXT( "%sPaks/" ), *FPaths :: ProjectSavedDir( ) );
PlatformFile.FindFilesRecursively( FoundFilenames , *Path , TEXT( "pak" ) ) ;

```

The FoundFilenames array are empty. How can I resolve this problem? The build configuration what I used was development.

---

<div class="post-metadata">

**Author:** ![Roma\_Levin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roma\_Levin](https://forums.unrealengine.com/u/Roma_Levin)\
**Post date:** [June 27, 2021, 3:23pm UTC](https://forums.unrealengine.com/t/iplatformfile-findfilesrecursively-found-nothing-at-projectsaveddir-on-android/412144/2 "2021-06-27T15:23:13Z")

</div>

The documentation is misleading here:

To make this function actually return all files one shall pass `TEXT("*")` to the files parameters, so in order to get all files with extension pak one shall pass `TEXT("*.pak")` there so it will look like:

```
IFileManager::Get().FindFilesRecursive(FoundFilenames , *Path , TEXT( "*.pak" ) ) ;

```
