Получение полного списка снимков
This commit is contained in:
parent
9ba43b0e38
commit
e42aacbed7
4 changed files with 18 additions and 26 deletions
|
@ -7,10 +7,12 @@ import std.file : read;
|
|||
void main()
|
||||
{
|
||||
auto cas = new CAS("/tmp/base.db", true);
|
||||
cas.newSnapshot("/tmp/text", cast(ubyte[]) read("/tmp/text"));
|
||||
cas.newSnapshot("/tmp/texts", cast(ubyte[]) read("/tmp/text"));
|
||||
// import std.stdio : writeln;
|
||||
|
||||
writeln(cas.getSnapshotList("/tmp/text"));
|
||||
foreach (snapshot; cas.getSnapshots()) {
|
||||
writeln(snapshot);
|
||||
}
|
||||
|
||||
// writeln(cas.getVersion);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue