fsnew.Flush();
refreshFileProgress(blockCount, i + 1); //更新进度
}
fsnew.Close();
fsnew.Dispose();
}
fs.Close();
fs.Dispose();
FileAttributes fileAttr = File.GetAttributes(path);
File.SetAttributes(path, FileAttributes.Archive);
File.Delete(path);
File.Move(path + ".temp", path);
File.SetAttributes(path, fileAttr);
}
}
}
catch (Exception ex)
{
File.Delete(path + ".temp");
throw ex;










