Initial commit

This commit is contained in:
Mark J Price 2022-07-13 16:36:53 +01:00
parent 4a4a0b8e20
commit 0ff7fcc22e
6 changed files with 18 additions and 18 deletions

View file

@ -56,19 +56,19 @@ string newFolder = Combine(
WriteLine($"Working with: {newFolder}");
// check if it exists
WriteLine($"Does it exist? {Exists(newFolder)}");
WriteLine($"Does it exist? {Path.Exists(newFolder)}");
// create directory
WriteLine("Creating it...");
CreateDirectory(newFolder);
WriteLine($"Does it exist? {Exists(newFolder)}");
WriteLine($"Does it exist? {Path.Exists(newFolder)}");
Write("Confirm the directory exists, and then press ENTER: ");
ReadLine();
// delete directory
WriteLine("Deleting it...");
Delete(newFolder, recursive: true);
WriteLine($"Does it exist? {Exists(newFolder)}");
WriteLine($"Does it exist? {Path.Exists(newFolder)}");
SectionTitle("Managing files");
@ -123,7 +123,7 @@ WriteLine($"File Extension: {GetExtension(textFile)}");
WriteLine($"Random File Name: {GetRandomFileName()}");
WriteLine($"Temporary File Name: {GetTempFileName()}");
SectionTitle("Getting file information ");
SectionTitle("Getting file information");
FileInfo info = new(backupFile);
WriteLine($"{backupFile}:");