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
Unknown Object (File)
Fri, Jul 5, 9:57 PM
Unknown Object (File)
Fri, Jul 5, 5:18 PM
Unknown Object (File)
Wed, Jul 3, 11:47 PM
Unknown Object (File)
Sat, Jun 29, 4:22 PM
Unknown Object (File)
Tue, Jun 25, 3:29 PM
Unknown Object (File)
Sun, Jun 23, 11:24 PM
Unknown Object (File)
Sun, Jun 23, 11:10 PM
Unknown Object (File)
Fri, Jun 21, 6:02 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