修复前一次提交的文件路径判断错误

Signed-off-by: madixin <madixin@huawei.com>
This commit is contained in:
madixin 2024-06-27 12:28:42 +08:00
parent e8cd4cf95e
commit 54f6673d35
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export class FileCache {
if (this.isInited) {
return
}
if (this.context && path.startsWith(this.context.cacheDir) === false) {
if (this.context && path.startsWith(this.context.cacheDir) === true) {
this.path = path
} else {
FileCache.CACHE_FOLDER = path