bugfix fs

This commit is contained in:
AJ ONeal 2020-11-08 20:52:56 -07:00
父節點 68e4de75bf
當前提交 4cda747412
共有 1 個檔案被更改,包括 3 行新增1 行删除

查看文件

@ -1,5 +1,7 @@
"use strict";
var fs = require('fs').promises;
function create(Desi, options) {
var fsapi = Desi.fsapi;
options.blogdir = options.blogdir || options.working_path;
@ -33,7 +35,7 @@ function create(Desi, options) {
fsapi.getCache = function () {
return fs
.readFileAsync(options.blogdir, "/cache.json")
.readFile(options.blogdir, "/cache.json")
.catch(function (/*e*/) {
return {};
})