# 输出路径与提交工具

`fsys.openXml.file` 负责文件身份和同目录临时文件提交，不负责 ZIP 或 Office 语义。

- `identity(path)` 查询文件身份并立即释放句柄。
- `stage(path,overwrite,protectPaths)` 校验目标、设备名/非法文件名和源件别名；返回 path,tempPath,commit,discard。
- 调用者写入 tempPath 成功后调用 commit；失败调用 discard。commit 成功返回最终路径，失败 null,err。
- 默认不覆盖。开启覆盖时也保护源件；提交前复验可识别文件身份；不保证跨卷的事务或对任意竞争/恶意文件系统的完整防护。
- discard 只删除临时文件，不删除已提交结果。

一般直接使用 writer.write 或 editor.save，不必调用此低层工具。
