diff options
| -rw-r--r-- | lib/blog.js | 2 |
1 files changed, 2 insertions, 0 deletions
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'); } |