refactor: fix a few places of path handling (#7023)

This commit is contained in:
Joshua Chen 2022-03-26 22:49:50 +08:00 committed by GitHub
parent e6838dd7a6
commit 4957ec947b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 15 deletions

View file

@ -37,7 +37,7 @@ export async function getDataFilePath({
filePath,
);
if (contentPath) {
return path.join(contentPath, filePath);
return path.resolve(contentPath, filePath);
}
return undefined;
}