diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-03 11:22:23 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-03 11:25:46 +0300 |
commit | 4913347201f4d00ccaf959c53357241d5bc3f9e0 (patch) | |
tree | b04294a85b4bcfb540107e39490018e8f42d5a6f /README.md | |
parent | 3d50e1497dd07929655636cfea0c48ccadd3ab8e (diff) | |
download | obnam2-4913347201f4d00ccaf959c53357241d5bc3f9e0.tar.gz |
refactor: add a builder for file system entries
The previous commit introduced a function to create FilesystemEntry
values from arbitrary data. Previously one could only be created from
std::fs::Metadata. This complicated our own testing, which (now) needs
to construct an arbitrary entry structure. However, while the function
added in the last commit was straightforward, it had 11 arguments, and
that's hard to keep track of. Replace that function with an
EntryBuilder struct, for clarity.
Sponsored-by: author
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions