# fsys.openXml.file 库模块帮助文档

## fsys.openXml.file 成员列表 <a id="fsys.openXml.file" href="#fsys.openXml.file">&#x23;</a>

读写共用的输出路径与文件身份工具；不加载 ZIP/Office。

### fsys.openXml.file.identity(path) <a id="fsys.openXml.file.identity" href="#fsys.openXml.file.identity">&#x23;</a>
返回文件系统身份字符串，查询后立即关闭句柄；无法查询返回 null。

### fsys.openXml.file.stage() <a id="fsys.openXml.file.stage" href="#fsys.openXml.file.stage">&#x23;</a>
[返回对象:openXmlFileStageObject](#openXmlFileStageObject)

### fsys.openXml.file.stage(path,overwrite=false,protectPaths) <a id="fsys.openXml.file.stage" href="#fsys.openXml.file.stage">&#x23;</a>
校验输出并分配同目录临时路径；默认不覆盖，保护源件及可识别硬链接别名。失败 null,err。

## openXmlFileStageObject 成员列表 <a id="openXmlFileStageObject" href="#openXmlFileStageObject">&#x23;</a>

### openXmlFileStageObject.commit() <a id="openXmlFileStageObject.commit" href="#openXmlFileStageObject.commit">&#x23;</a>
使用 MoveFileEx 提交；成功返回完整路径，失败 null,err；失败后调用 discard。

### openXmlFileStageObject.discard() <a id="openXmlFileStageObject.discard" href="#openXmlFileStageObject.discard">&#x23;</a>
丢弃临时文件；不删除已经提交的最终文件。

### openXmlFileStageObject.path <a id="openXmlFileStageObject.path" href="#openXmlFileStageObject.path">&#x23;</a>
最终输出完整路径。

### openXmlFileStageObject.tempPath <a id="openXmlFileStageObject.tempPath" href="#openXmlFileStageObject.tempPath">&#x23;</a>
要写入的同目录临时文件路径。
