This section explains the System Utility functionality of checking the disk space.
Perform one or more of the following steps based on the requirements:
The functions return ETrue if the number of bytes to be written takes the memory below the critical level, else returns EFalse.
The following is an code fragment illustrating how to check whether the disk space is below critical level:
TInt dataSize = 500; if ( SysUtil::DiskSpaceBelowCriticalLevelL( &iFsSession, dataSize, EDriveC ) ) { // Cannot write the data, there's not enough free space on disk. ... } else { // It's ok to actually write the data. ... }