30 lines
765 B
C#
30 lines
765 B
C#
global using System;
|
|
global using System.Text;
|
|
global using System.Collections.Generic;
|
|
global using DTLib.Filesystem;
|
|
global using File = DTLib.Filesystem.File;
|
|
global using Directory = DTLib.Filesystem.Directory;
|
|
using DTLib.Ben.Demystifier;
|
|
using SyncDirectory.Storage;
|
|
|
|
Console.InputEncoding = Encoding.UTF8;
|
|
Console.OutputEncoding = Encoding.UTF8;
|
|
Console.Title = "SyncDirectory";
|
|
|
|
try
|
|
{
|
|
var storage = new StorageController(
|
|
#if DEBUG
|
|
"SyncDirectory-data-debug"
|
|
#endif
|
|
);
|
|
storage.CreateSnapshot("tmp", "tmp");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
Console.WriteLine(ex.ToStringDemystified());
|
|
Console.ForegroundColor = ConsoleColor.Gray;
|
|
Console.WriteLine();
|
|
}
|