- 根因:损坏目录项里读出的时间戳是垃圾值(负值/越界),_add_problem 里 time.localtime 抛 OSError(22),异常从单文件兜底里逃出去,导致整次备份中断(用户 F: 盘 19406 个文件只备到一半) - _fmt_ns:时间戳格式化失败不再抛异常,改为输出"无效时间戳(xxx)" - 源目录名非法(目录项损坏):直接跳过整棵子树并记录"已跳过",不再改名造空目录 - 枚举得到却打不开的条目(FileNotFoundError):记为"源目录项损坏",单独计数,不中断 - 存在损坏目录时本轮跳过清理阶段,保护备份里已有的副本不被误删 - 打不开的条目不进源盘快照,避免下一轮又报"源文件消失" - 问题清单/日志/GUI 汇总新增"损坏的目录项 N 处(建议 chkdsk /f)" - 新增 5 项损坏目录项测试(共 62 项)
28 lines
826 B
Plaintext
28 lines
826 B
Plaintext
VSVersionInfo(
|
|
ffi=FixedFileInfo(
|
|
filevers=(2, 2, 1, 0),
|
|
prodvers=(2, 2, 1, 0),
|
|
mask=0x3f,
|
|
flags=0x0,
|
|
OS=0x40004,
|
|
fileType=0x1,
|
|
subtype=0x0,
|
|
date=(0, 0)
|
|
),
|
|
kids=[
|
|
StringFileInfo([
|
|
StringTable('080404B0', [
|
|
StringStruct('CompanyName', 'Udisk Backup'),
|
|
StringStruct('FileDescription', 'U盘备份工具 - 增量/镜像备份,复制后 SHA-256 校验'),
|
|
StringStruct('FileVersion', '2.2.1.0'),
|
|
StringStruct('InternalName', 'usb_backup'),
|
|
StringStruct('LegalCopyright', 'MIT License'),
|
|
StringStruct('OriginalFilename', 'U盘备份工具.exe'),
|
|
StringStruct('ProductName', 'U盘备份工具'),
|
|
StringStruct('ProductVersion', '2.2.1.0')
|
|
])
|
|
]),
|
|
VarFileInfo([VarStruct('Translation', [2052, 1200])])
|
|
]
|
|
)
|