RemObjects.InternetPack.Ftp.VirtualFtp.VirtualFtpServer.InvokeOnStoreFile C# (CSharp) Method

InvokeOnStoreFile() protected method

protected InvokeOnStoreFile ( FtpTransferEventArgs e ) : void
e FtpTransferEventArgs
return void
		protected override void InvokeOnStoreFile(FtpTransferEventArgs e)
		{
			VirtualFtpSession lSession = (VirtualFtpSession)e.Session;

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

			IFtpFile lFile = lFolder.CreateFile(lFilename, lSession);
			lFile.CreateFile(e.DataChannel);
			e.Ok = true;
		}