Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bberka committed Jun 27, 2022
1 parent 535865a commit f77c320
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions EasMe/EasFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static void DeleteAll(string filePath, bool isLoggingEnabled = true)
}
else
{
throw new EasException("File or folder does not exist => Path: " + filePath);
throw new EasException("Error in DeleteAll: Given File or folder does not exist => Path: " + filePath);
}


Expand Down Expand Up @@ -106,7 +106,7 @@ public static void MoveAll(string sourcePath, string destPath,bool overwrite, bo
}
else
{
throw new EasException("Given source path not exist.");
throw new EasException("Error in MoveAll: Given source path not exist.");
//if (isLoggingEnabled) EasLog.Error("Error while moving file. File or Directory not exist => Source:" + sourcePath + " Destination: " + destPath);
}
}
Expand Down Expand Up @@ -157,17 +157,17 @@ public static void CopyAll(string sourcePath, string destPath, bool overwrite, b
try
{
File.Copy(sourcePath, destPath + "\\" + Path.GetFileName(sourcePath), true);
if (isLoggingEnabled) EasLog.Info("File moved => Source: " + sourcePath + " Destination: " + destPath);
if (isLoggingEnabled) EasLog.Info("File copying => Source: " + sourcePath + " Destination: " + destPath);
}
catch (Exception ex)
{
if (isLoggingEnabled) EasLog.Exception("Error while moving file => Source:" + sourcePath + " Destination: " + destPath, ex);
if (isLoggingEnabled) EasLog.Exception("Error while copying file => Source:" + sourcePath + " Destination: " + destPath, ex);
}

}
else
{
throw new EasException("Given source path not exist.");
throw new EasException("Error in CopyAll: Given source path not exist.");

}
}
Expand Down

0 comments on commit f77c320

Please sign in to comment.