Skip to content

Commit

Permalink
Merge pull request #62 from SAP/traget_folder
Browse files Browse the repository at this point in the history
Create target folder - remove generator name from path
  • Loading branch information
tomer-epstein authored Dec 22, 2019
2 parents 346d023 + 5f05cb0 commit 56faaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/yeomanui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export class YeomanUI {

public async runGenerator(generatorName: string) {

// TODO: ensure generatorName is a valid dir name
const destinationRoot: string = path.join(os.homedir(), "projects", generatorName);
// TODO: ensure projects folder exist
const destinationRoot: string = path.join(os.homedir(), "projects");

// TODO: wait for dir to be created
fs.mkdir(destinationRoot, { recursive: true }, (err) => {
Expand Down

0 comments on commit 56faaf4

Please sign in to comment.