Skip to content

Commit

Permalink
Create functions.cz
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidy-Coder authored Aug 6, 2024
1 parent 686b9b3 commit bc096bb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions c#/functions.cz
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.IO;

namespace UtilityLibraries{
class TidyFileManagement{
bool exists(string tidyPath){
if(Directory.Exists(tidyPath) || File.Exists(tidyPath)){
return true;
}
else{
return false;
}
}
bool isFolder(string tidyPath){
return Directory.Exists(string tidyPath);
}
bool isFile(string tidyPath){
return File.Exists(tidyPath);
}
}
}

0 comments on commit bc096bb

Please sign in to comment.