|
|
@ -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 {}; |
|
|
|
}) |
|
|
|