Skip to content

Commit

Permalink
fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Dec 9, 2021
1 parent 48c4828 commit e1db79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taskRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const projectID = ""

const folderID = config.folderMap[process.argv[2]].fusionID;
const localPath = config.folderMap[process.argv[2]].local;
const localDir = '/FileShare' + localPath;
const localDir = __dirname + '/FileShare' + localPath;

console.log(folderID, localDir);

Expand All @@ -32,7 +32,7 @@ if (!fs.existsSync(localDir)) {
fs.mkdirSync(localDir, {recursive: true});
}

// fs.writeFileSync(`${__dirname}/FileShare/Gantry/test.txt`, 'hello', (err: any) => {
// fs.writeFileSync(`${localDir}/test.txt`, 'hello', (err: any) => {
// if (err)
// console.log(err);
// else {
Expand Down

0 comments on commit e1db79a

Please sign in to comment.