RemObjects.InternetPack.Ftp.VirtualFtp.DiscFolder.CreateFile C# (CSharp) Method

CreateFile() public method

public CreateFile ( String fileName, VirtualFtpSession session ) : IFtpFile
fileName String
session VirtualFtpSession
return IFtpFile
		public override IFtpFile CreateFile(String fileName, VirtualFtpSession session)
		{
			if (!AllowPut(session))
				throw new FtpException(550, String.Format("Cannot upload file \"{0}\", permission to upload files to this folder denied.", fileName));

			if (HasFile(fileName))
				throw new FtpException(550, String.Format("A file named \"{0}\" already exist.", fileName));

			return new DiscFile(this, fileName, Path.Combine(LocalPath, fileName));
		}