We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3eac1 commit 53054ccCopy full SHA for 53054cc
src/index.ts
@@ -52,10 +52,13 @@ const plugin: JupyterFrontEndPlugin<void> = {
52
const openDirectoryButton = new ToolbarButton({
53
icon: folderIcon,
54
onClick: async () => {
55
- const fileHandle = await window.showDirectoryPicker();
+ const directoryHandle = await window.showDirectoryPicker();
56
57
- if (fileHandle) {
58
- drive.rootHandle = fileHandle;
+ if (directoryHandle) {
+ drive.rootHandle = directoryHandle;
59
+
60
+ // Go to root directory
61
+ widget.model.cd('/');
62
}
63
},
64
tooltip: trans.__('Open a new folder')
0 commit comments