mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Ensure mount point does not exist in winfsp.
This commit is contained in:
@@ -41,6 +41,10 @@ namespace RomRepoMgr.Core.Filesystem
|
||||
internal bool Mount(string mountPoint)
|
||||
{
|
||||
_host = new FileSystemHost(this);
|
||||
|
||||
if(Directory.Exists(mountPoint))
|
||||
Directory.Delete(mountPoint);
|
||||
|
||||
int ret = _host.Mount(mountPoint);
|
||||
|
||||
if(ret == STATUS_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user