Exemplo n.º 1
0
        public bool RemoveTempFileName(string srcFile)
        {
            bool success = true;


            IAPL.Transport.Operation.Network netOperation = new IAPL.Transport.Operation.Network();

            if (!netOperation.DeleteRemoteFile(srcFile))
            {
                success           = false;
                this.ErrorMessage = netOperation.ErrorMessage;
            }

            return(success);
        }
Exemplo n.º 2
0
        public bool backupFileFrom(string srcFile, string desFile)
        {
            bool success = true;

            success = this.copyFile(srcFile, desFile);

            if (success)
            {
                IAPL.Transport.Operation.Network netOperation = new IAPL.Transport.Operation.Network();

                if (!netOperation.DeleteRemoteFile(srcFile))
                {
                    success           = false;
                    this.ErrorMessage = netOperation.ErrorMessage;
                }
            }
            else
            {
                success = false;
            }
            return(success);
        }