Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceq-amazon committed Jun 1, 2022
1 parent a872fe7 commit 179b5d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const bodyParser = require('body-parser');
const { dirname } = require('path');
const appRoot = require('app-root-path');

const appDir = appRoot;
const appDir = appRoot.path;

class ServerHandler {
constructor(app, readOnly, path, serverPath) {
Expand All @@ -16,7 +16,6 @@ class ServerHandler {
});

if (canWrite) {
console.log(appDir, dataPath, path);
if (!fs.existsSync(dirname(`${appDir}/${dataPath}/${path}`))) {
fs.mkdirSync(dirname(`${appDir}/${dataPath}/${path}`));
}
Expand Down

0 comments on commit 179b5d3

Please sign in to comment.