Add Cargo Service & Controller

This commit is contained in:
Ben Parsons 2024-05-07 21:13:29 +10:00
commit bcc15de82b
8 changed files with 114 additions and 50 deletions

View file

@ -0,0 +1,21 @@
namespace Pulsar.Utils;
public static class FileHelper
{
public static bool ValidateFile(string filePath)
{
if (!File.Exists(filePath))
{
return false;
}
var fileInfo = new FileInfo(filePath);
if (fileInfo.Length == 0)
{
return false;
}
return true;
}
}