Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
Retrieves information about the total number of bytes and number of free bytes for the specified disk path.
Note that on modern file systems the concept of "free space" is a bit more loosely defined than one might historically expect due to features like on-demand freeing of caches and automatic content deduplication. As a result, this function can be very slow (10s of ms), and the free space value should not be used for exact measurements.
| Name | GetDiskTotalAndFreeSpace |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformMisc.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp |
static bool GetDiskTotalAndFreeSpace
(
const FString & InPath,
uint64 & TotalNumberOfBytes,
uint64 & NumberOfFreeBytes
)