From 281b6f065f234d3b2934f7e04af6f61b72b0a17b Mon Sep 17 00:00:00 2001 From: Jason Alborough Date: Mon, 21 Mar 2022 17:06:18 -0400 Subject: [PATCH] fix: remove method FileExsists fix: fixed casing in debug statement fix: changed the method name to ReadDataFromFile. feature: added an overload ReadDataFromFile(string) --- .../PepperDashEssentialsBase/File/FileIO.cs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/File/FileIO.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/File/FileIO.cs index cc67e8da..ffc0bfe3 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/File/FileIO.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/File/FileIO.cs @@ -12,22 +12,7 @@ namespace PepperDash.Essentials.Core { static CCriticalSection fileLock = new CCriticalSection(); - /// - /// - /// - /// - /// - public static bool FileExsists(string fileName) - { - if (GetFile(fileName) == null) - { - return false; - } - else - { - return true; - } - } + /// /// Get the full file info from a path/filename, can include wildcards. /// @@ -69,7 +54,7 @@ namespace PepperDash.Essentials.Core /// /// /// - public static string GetDataFromFile(FileInfo file) + public static string ReadDataFromFile(FileInfo file) { try {