Skip to content

Commit

Permalink
folder auto creation added (fossasia#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pipe-Runner authored and mariobehling committed Aug 31, 2019
1 parent 508eba0 commit f6b5242
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screen/LoggedData/LoggedData.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class LoggedData extends Component {

componentDidMount() {
this.destDir = path.join(os.homedir(), 'Documents', 'PSLab');
if (!fs.existsSync(this.destDir)) {
fs.mkdirSync(this.destDir);
}
this.watcher = chokidar.watch(this.destDir);
this.setState({
loading: true,
Expand Down

0 comments on commit f6b5242

Please sign in to comment.