Exemplo n.º 1
0
        protected sealed override bool run()
        {
            var sourceFileName = SourceFileName.GetValue();
            var destFileName   = DestFileName.GetValue();

            File.Move(sourceFileName, destFileName);

            return(true);
        }
Exemplo n.º 2
0
        protected sealed override bool run()
        {
            var sourceFileName = SourceFileName.GetValue();
            var destFileName   = DestFileName.GetValue();

            if (Overwrite == null)
            {
                File.Copy(sourceFileName, destFileName);
            }
            else
            {
                File.Copy(sourceFileName, destFileName, Overwrite.Check());
            }

            return(true);
        }