Skip to content

Commit 683e42e

Browse files
Use directoryExists() instead of fileExists().
1 parent 0cc079a commit 683e42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/datascience/jupyter/jupyterNotebook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ export class JupyterNotebookBase implements INotebook {
656656
if (this.launchInfo && this.launchInfo.connectionInfo.localLaunch && !this._workingDirectory) {
657657
// See what our working dir is supposed to be
658658
const suggested = this.launchInfo.workingDir;
659-
if (suggested && await this.fs.fileExists(suggested)) {
659+
if (suggested && await this.fs.directoryExists(suggested)) {
660660
// We should use the launch info directory. It trumps the possible dir
661661
this._workingDirectory = suggested;
662662
return this.changeDirectoryIfPossible(this._workingDirectory);

0 commit comments

Comments
 (0)