Page MenuHomePhabricator

[native] Filepath generation for log and userkeys data
ClosedPublic

Authored by michal on Jan 11 2024, 7:46 AM.
Tags
None
Referenced Files
F5337298: D10605.id.diff
Wed, Apr 9, 12:40 AM
F5329511: D10605.id35680.diff
Tue, Apr 8, 9:08 PM
F5329101: D10605.id35571.diff
Tue, Apr 8, 9:00 PM
Unknown Object (File)
Mon, Apr 7, 12:03 AM
Unknown Object (File)
Sun, Mar 30, 10:10 AM
Unknown Object (File)
Thu, Mar 13, 2:20 AM
Unknown Object (File)
Mar 2 2025, 10:30 PM
Unknown Object (File)
Feb 28 2025, 10:45 PM
Subscribers

Details

Summary

ENG-6216 : Add rust code for getting filepath with compations/logs
Adds two new functions for files used for backup data storage on the device (while they are waiting to be confirmed by backup service): one for logs (with optional attachments file) and the second one for userkeys file.

Additionally changes the functions to take &str (rust::Str) instead of String (rust::String) as we are making a copy of them to std::string immediately and don't need to pass an owned string.

Depends on D10604

Test Plan

Called these functions from rust and got these results:

backup-123-userkeys
backup-123-log-456
backup-123-log-456-attachments

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable