Fix directory browsing
@@ -532,7 +532,7 @@ function addCommands(
toArray(
map(widget.selectedItems(), item => {
if (item.type === 'directory') {
- return widget.model.cd(item.path);
+ return widget.model.cd(`/${item.path}`);
}
return commands.execute('docmanager:open', {
@@ -922,7 +922,7 @@ export class DirListing extends Widget {
this._onItemOpened.emit(item);
this._model
- .cd(item.path)
+ .cd(`/${item.path}`)
.catch(error => showErrorMessage('Open directory', error));
} else {
let path = item.path;