From 7c363c02ccfcbc02cd95c1de996bb9963f1da6d8 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Wed, 25 Feb 2026 22:26:22 +0000 Subject: [PATCH] fix blob zip filename and location Signed-off-by: Will Andrews --- pds.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pds.go b/pds.go index fbbc138..cc5c6c3 100644 --- a/pds.go +++ b/pds.go @@ -116,7 +116,11 @@ func (s *service) backupBlobs(ctx context.Context) error { return fmt.Errorf("get all blob CIDs: %w", err) } - filename := fmt.Sprintf("%s-%s-blobs.zip", s.did, time.Now()) + if len(cids) == 0 { + return nil + } + + filename := path.Join(s.blobDir, fmt.Sprintf("%s-%d-blobs.zip", s.did, time.Now().UnixMilli())) defer os.Remove(filename) f, err := os.Create(filename) -- 2.51.2