private static void CheckAccessPermissions(DirectoryInfo telemetryDirectory)
{
// This should throw UnauthorizedAccessException if the process lacks permissions to list and read files.
// We don't check for write permissions to avoid additional disk access and rely on TransmissionStorage
// to handle the UnauthorizedAccessException gracefully.
telemetryDirectory.GetFiles("_");
}