#132 - Open only an existing folder

This commit is contained in:
Elio Struyf
2021-10-05 13:45:42 +02:00
parent 1d8c192c07
commit 6151ecb4c1
+1 -1
View File
@@ -279,7 +279,7 @@ export class Dashboard {
// If the static folder is not set, retreive the last opened location
if (!selectedFolder) {
const stateValue = await Extension.getInstance().getState<string | undefined>(ExtensionState.SelectedFolder);
if (stateValue) {
if (stateValue && existsSync(stateValue)) {
selectedFolder = stateValue;
}
}