add some logic for file system interactions

This commit is contained in:
2024-01-21 16:20:12 -06:00
parent 9fc8818cc1
commit b33adad760
2 changed files with 136 additions and 3 deletions

View File

@@ -27,4 +27,18 @@ static async Task Main()
var cloneUrls = uniqueRepos.Select(r => r.CloneUrl);
}
await Main();
static void DriveStuff()
{
IEnumerable<DriveInfo> volumes = Volumes.GetVolumes();
DriveInfo? selection = Volumes.SelectFromList(volumes);
if (selection == null)
{
Console.WriteLine("No selection found");
return;
}
var backupDir = Volumes.CreateBackupDirectory(selection);
}
DriveStuff();
//await Main();