Don't know how to mount the DokanInstance...
Closed this issue · 4 comments
Silloky commented
I've got the following code :
var fs = new DavFS(
_server,
_token,
_mountPoint,
_remotePath
);
var logger = new ConsoleLogger("[Dokan] ");
var dokan = new Dokan(logger);
DokanInstanceBuilder builder = new DokanInstanceBuilder(dokan)
.ConfigureLogger(() => logger)
.ConfigureOptions(options => new DOKAN_OPTIONS
{
Options = DokanOptions.DebugMode | DokanOptions.StderrOutput | DokanOptions.RemovableDrive,
MountPoint = _mountPoint,
});
DokanInstance dokanInstance = builder.Build(fs)
DavFS is defined in another file.
So, I've got a DokanInstance object, but how do I mount it ?
Both DokanInstance and Dokan classes don't have any .Mount() method...
I don't understand how to run the instance !
Liryna commented
Hi @Silloky ,
Build(fs) will instantiate and return a DokanInstance which peform the mount for you
Silloky commented
Thanks for your answer !
Oh, so Build automatically mounts it ?
Liryna commented
This is correct
Silloky commented
Okay thanks !