mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 17:48:41 +00:00
Fix ShouldOnlyShowUsersLevels test
This commit is contained in:
parent
09c72eb9c2
commit
249b1d582c
1 changed files with 11 additions and 1 deletions
|
@ -78,7 +78,17 @@ namespace LBPUnion.ProjectLighthouse.Helpers
|
|||
|
||||
public static bool ResourceExists(string hash) => File.Exists(GetResourcePath(hash));
|
||||
|
||||
public static int ResourceSize(string hash) => (int)new FileInfo(GetResourcePath(hash)).Length;
|
||||
public static int ResourceSize(string hash)
|
||||
{
|
||||
try
|
||||
{
|
||||
return (int)new FileInfo(GetResourcePath(hash)).Length;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnsureDirectoryCreated(string path)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue