/** True when a resolved on-disk path contains bytes worth streaming to a peer. */ export function shouldServeAttachmentFromDiskPath(fileSize: number | null | undefined): boolean { return typeof fileSize === 'number' && Number.isFinite(fileSize) && fileSize > 0; }