RemObjects.InternetPack.Ftp.VirtualFtp.VirtualFtpServer.InvokeOnCanRetrieveFile C# (CSharp) Méthode

InvokeOnCanRetrieveFile() protected méthode

protected InvokeOnCanRetrieveFile ( FtpTransferEventArgs e ) : void
e FtpTransferEventArgs
Résultat void
		protected override void InvokeOnCanRetrieveFile(FtpTransferEventArgs e)
		{
			VirtualFtpSession lSession = (VirtualFtpSession)e.Session;

			IFtpFolder lFolder;
			String lFilename;
			lSession.CurrentFolder.FindBaseFolderForFilename(e.FileName, out lFolder, out lFilename, lSession);

			IFtpFile lFile = lFolder.GetFile(lFilename, lSession);
			e.Ok = (lFile != null && lFile.AllowRead(lSession));
		}