mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-05 22:35:36 +00:00
Initial commit
This commit is contained in:
parent
4a4a0b8e20
commit
0ff7fcc22e
6 changed files with 18 additions and 18 deletions
|
|
@ -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}:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue