Exemplo n.º 1
0
        protected override void InvokeOnCanStoreFile(FtpTransferEventArgs e)
        {
            VirtualFtpSession lSession = (VirtualFtpSession)e.Session;

            IFtpFolder lFolder;
            String     lFilename;

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

            e.Ok = lFolder.AllowPut(lSession);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        protected override void InvokeOnRetrieveFile(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);

            lFile.GetFile(e.DataChannel);
            e.Ok = true;
        }
Exemplo n.º 4
0
		protected override void InvokeOnRetrieveFile(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);
			lFile.GetFile(e.DataChannel);
			e.Ok = true;
		}
Exemplo n.º 5
0
		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));
		}
Exemplo n.º 6
0
		protected override void InvokeOnCanStoreFile(FtpTransferEventArgs e)
		{
			VirtualFtpSession lSession = (VirtualFtpSession)e.Session;

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

			e.Ok = lFolder.AllowPut(lSession);
		}