Open GoogleCodeExporter opened 9 years ago
I solved a similar scenario by performing the following (in .net 4)
do
{
string[] drives = Environment.GetLogicalDrives();
if (Array.Exists(drives, dr => dr.Remove(1) == configDetails.DriveLetter))
break;
Log.Info("Waiting for Dokan to create the drive letter before reappling the shares");
Thread.Sleep(100);
} while (ManagementLayer.Instance.State == LiquesceSvcState.Running);
See the end of LiquesceOps.cs in http://liquesce.codeplex.com/
Original comment by smurf...@gmail.com
on 29 Aug 2010 at 5:08
Thanks, smurf.iv.
The work-around I use is this:
string path = options.DriveLetter + @":\";
while (!Directory.Exists(path))
{
Thread.Sleep(1000);
}
;)
Original comment by rami.abughazaleh@gmail.com
on 31 Aug 2010 at 6:38
There are issues with that method
see
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/2d7c9648-5b12-42a4
-a4a8-5d52157de0b6
Also the Dokan - Drive letter may will be turning into a unc / mount path
(WhenEver the next version sees the light of day !)
So I think we should both try and find another way !
Original comment by smurf...@gmail.com
on 6 Sep 2010 at 7:19
Original issue reported on code.google.com by
rami.abughazaleh@gmail.com
on 28 Aug 2010 at 2:12