internal DokanFtpClient(FTPSClient fTPSClient, IFtpOptions ftpOptions) { this.fTPSClient = fTPSClient; this.ftpOptions = ftpOptions; const string ROOT = "\\"; cachedDirectoryFileInformation.Add( ROOT, new DirectoryFileInformation(true) { FileName = ROOT }); this.fTPSClient.Connect( ftpOptions.HostName, new NetworkCredential(ftpOptions.UserName, ftpOptions.Password), ESSLSupportMode.ClearText); Task.Factory.StartNew(() => { while (true) { fTPSClientTaskQueue.Take().RunSynchronously(); } }); }