A tool for backing up ATProto related data to S3

fix blob zip filename and location

Signed-off-by: Will Andrews <did:plc:dadhhalkfcq3gucaq25hjqon>

willdot.net 7c363c02 c39156f1

verified
+5 -1
+5 -1
pds.go
··· 116 116 return fmt.Errorf("get all blob CIDs: %w", err) 117 117 } 118 118 119 - filename := fmt.Sprintf("%s-%s-blobs.zip", s.did, time.Now()) 119 + if len(cids) == 0 { 120 + return nil 121 + } 122 + 123 + filename := path.Join(s.blobDir, fmt.Sprintf("%s-%d-blobs.zip", s.did, time.Now().UnixMilli())) 120 124 defer os.Remove(filename) 121 125 122 126 f, err := os.Create(filename)