Files
0qln bff34658b8 appendix: 23 Code-Ausschnitte aus dem Houston-Repository
Pin nixpkgs to the revision used by itc.componentware: the channel version
ships a latexminted that crashes on Python 3.14, which made every listing
fail and sent latexmk into an endless error prompt. Also force
nonstopmode/halt-on-error so a broken listing can never loop again.
2026-08-25 21:38:22 +02:00

26 lines
756 B
C#

private async IAsyncEnumerable<DocumentKey> ListDocumentsAsync(
OrgSlug org,
DocumentRelativePath? startAfter,
[EnumeratorCancellation] CancellationToken cancellationToken)
{
var isFirstRequest = true;
var requestBuilder = () =>
{
var r = new ListObjectsV2Request
{
Prefix = org.ToString(),
StartAfter = isFirstRequest && startAfter is { } doc
? new DocumentKey(org, doc.Type, doc.Name).ToString()
: null,
};
isFirstRequest = false;
return r;
};
await foreach (var obj in EnumerateObjectsAsync(requestBuilder, cancellationToken))
if (DocumentKey.TryFromS3Key(obj.Key, out var key))
yield return key.Value;
}