跳到主要内容

routeSave 获取存档文件路径(Node.js)

routeSave

类型: MethodDeclaration

定义位置: loader.ts

描述

获取存档文件路径(Node.js)

参数 relativePath: 相对路径

返回值:绝对路径

参数

参数名类型描述默认值
relativePathstring--

返回值

类型: string

绝对路径

源代码

位置: 第 195 行

public routeSave(relativePath: string): string {
return require('path').resolve(Data.saveDir, relativePath)
}

文档生成时间:2025/7/7 12:07:06