Files
TinfoilVibeServer/TinfoilVibeServer/Models/FileEntry.cs
T
ecenshu c260ebd566
Build & Push Docker image / build-and-push (push) Successful in 5m39s
ci / build_linux (push) Successful in 4m36s
If filename can extract to a NcaMetadata entry, don't use nspextractor to pull information (#3)
Scan directories sequentially to reduce memory footprint

Reviewed-on: #3
Co-authored-by: Huy Nguyen <ecenshu@gmail.com>
Co-committed-by: Huy Nguyen <ecenshu@gmail.com>
2025-11-15 06:59:25 +00:00

13 lines
466 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using TinfoilVibeServer.Services;
namespace TinfoilVibeServer.Models;
/// <summary>
/// One line in the snapshot the JSON will be an array of these.
/// </summary>
public sealed record FileEntry(
string Path, // nsp or archive path
long Size, // size of nsp or full archive
string? Hash, // SHA256 hex of first NCA of first NCP in NSP or archive
List<NcaMetadataWithHash> Titles // Details of all NSP Roms in the Path
);