Xing Ji’s Blog

Chatter from a computer graphics fan

New APIs - ZipPlatformFile

Add two new APIs/Blueprints

ZipPlatformFile’s Introduction

Find all files in the directory

TArray<FString> FoundFiles;
UZipPlatformFileBlueprintFunctionLibrary::FindFiles(this, FoundFiles/*All files*/, TEXT("/Game/test_zip")/*Mount directory*/, TEXT(".txt")/*File extension*/, true/*Recursive or not*/);

Find all sub-directories in the directory

TArray<FString> FoundDirectories;
UZipPlatformFileBlueprintFunctionLibrary::FindDirectories(this, FoundDirectories/*All sub-directories*/, TEXT("/Game/test_zip")/*Mount directory*/);

Fix some issues

  • [Fixed] Fix a crash when the zip file contains a file that is zero sizes.
  • [Fixed] Can’t get the information on the root directory.