Skip to content

Thursday lab submitting#4

Open
drewferris wants to merge 4 commits into
sea-401d5-javascript:masterfrom
drewferris:thursday-lab-submitting
Open

Thursday lab submitting#4
drewferris wants to merge 4 commits into
sea-401d5-javascript:masterfrom
drewferris:thursday-lab-submitting

Conversation

@drewferris
Copy link
Copy Markdown

resubmitting with tests

Comment thread server.js
const dir = __dirname + '/data';
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES!! Bonus point for creating a data directory if it doesn't exist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants