fs - merge readdir functions into one

This commit is contained in:
Benjamin Pasero
2021-02-03 12:07:48 +01:00
parent b28cd23d52
commit aca5d3ea2e
9 changed files with 121 additions and 52 deletions

View File

@@ -86,7 +86,7 @@ export class ExtHostOutputService2 extends ExtHostOutputService {
private async _doCreateOutChannel(name: string): Promise<AbstractExtHostOutputChannel> {
try {
const outputDirPath = join(this._logsLocation.fsPath, `output_logging_${toLocalISOString(new Date()).replace(/-|:|\.\d+Z$/g, '')}`);
const exists = await SymlinkSupport.dirExists(outputDirPath);
const exists = await SymlinkSupport.existsDirectory(outputDirPath);
if (!exists) {
await promises.mkdir(outputDirPath, { recursive: true });
}