/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h
Return true if the PersistentDownloadDir is available. On some platforms, a writable directory might not be available by default. Using this function allows handling that case early.
static bool HasProjectPersistentDownloadDir()