X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/d3f282a164e44f54678cdb45aad7a09c8a92b89e..f24ecd569d1945fbbdf18fad9398ea338d8eb2c6:/lib/blog.js diff --git a/lib/blog.js b/lib/blog.js index d2acbb4..fd5adaf 100644 --- a/lib/blog.js +++ b/lib/blog.js @@ -199,6 +199,7 @@ module.exports = class Blog { */ async syncDown() { internals.debuglog('Pulling remote state'); + await ensureDirectoryExists(this.postsDirectory); await Remote.syncDown(this.remoteConfig, this.blogDirectory) internals.debuglog('Pulled remote state'); } @@ -213,6 +214,7 @@ module.exports = class Blog { */ async syncUp() { internals.debuglog('Pushing remote state'); + await ensureDirectoryExists(this.postsDirectory); await Remote.syncUp(this.remoteConfig, this.blogDirectory) internals.debuglog('Pushed remote state'); }