Add winfsp library.

This commit is contained in:
2020-08-30 14:22:41 +01:00
parent 8637bfe63f
commit b1fcf40945
9 changed files with 82 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
using System;
using Fsp;
namespace RomRepoMgr.Core.Filesystem
{
public class Winfsp : FileSystemBase
{
public static bool IsAvailable
{
get
{
try
{
Version winfspVersion = FileSystemHost.Version();
if(winfspVersion == null)
return false;
return winfspVersion.Major == 1 && winfspVersion.Minor >= 7;
}
catch(Exception)
{
return false;
}
}
}
}
}