Skip to content

Commit

Permalink
normalize root path (#200)
Browse files Browse the repository at this point in the history
Before this change the root path had to be specified in the format
appropriate to the platform majestic was being run on. But after
this change, majestic automatically converts root path to the
proper format for the platform.

Co-authored-by: Greg Veres <[email protected]>
  • Loading branch information
gregveres and Greg Veres authored May 20, 2020
1 parent c7ad094 commit 2a6227d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/services/project.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TreeMap, MajesticConfig } from "./types";
import { spawnSync } from "child_process";
import { sep, join, extname } from "path";
import { sep, join, extname, normalize } from "path";
import { createLogger } from "../logger";

const log = createLogger("Project");
Expand All @@ -9,7 +9,7 @@ export default class Project {
public projectRoot: string;

constructor(root: string) {
this.projectRoot = root;
this.projectRoot = normalize(root);
}

getFilesList(config: MajesticConfig) {
Expand Down

0 comments on commit 2a6227d

Please sign in to comment.