fixed the windows save issue and updated the cluster status notebook with Vicky's updates (#6475)

This commit is contained in:
Maddy
2019-07-23 16:43:37 -07:00
committed by GitHub
parent 70e8c7f4c8
commit 53ab31766c
2 changed files with 9 additions and 8 deletions

View File

@@ -100,9 +100,10 @@ async function saveBooksToFolder(folderUri: vscode.Uri, bookContribution: BookCo
// Get book contributions
if (bookContribution && folderUri) {
//remove folder if exists
await fs.removeSync(path.join(folderUri.path, bookContribution.name));
await fs.removeSync(path.join(folderUri.fsPath, bookContribution.name));
//copy them from the books extension:
const destinationFolder = path.join(folderUri.path, bookContribution.name);
const destinationFolder = path.join(folderUri.fsPath, bookContribution.name);
//make directory for each contribution book.
fs.mkdirSync(destinationFolder);
await fs.copy(bookContribution.path, destinationFolder);
}