public MoveFileIfDoesntExist(string sourceVirtualPath, string targetVirtualPath)
        {
            FileInfo source = new FileInfo(HostingEnvironment.MapPath(sourceVirtualPath)),
                     target = new FileInfo(HostingEnvironment.MapPath(targetVirtualPath));

            _command = new Ucommerce.Installer.FileMover(source, target);
        }
예제 #2
0
        public MoveFile(string sourceVirtualPath, string targetVirtualPath, bool backupTarget)
        {
            _backupTarget = backupTarget;

            FileInfo source = new FileInfo(HostingEnvironment.MapPath(sourceVirtualPath)),
                     target = new FileInfo(HostingEnvironment.MapPath(targetVirtualPath));

            _command = new Ucommerce.Installer.FileMover(source, target);
        }