This commit is contained in:
Thorben Bräutigam 2019-03-27 15:38:37 +01:00
parent ae828f76a3
commit 521f09f79f

View File

@ -6,11 +6,13 @@ define([], function () {
if (window.NativeShell && window.NativeShell.FileSystem) { if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.fileExists(path); return window.NativeShell.FileSystem.fileExists(path);
} }
return Promise.reject();
}, },
directoryExists: function (path) { directoryExists: function (path) {
if (window.NativeShell && window.NativeShell.FileSystem) { if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.directoryExists(path); return window.NativeShell.FileSystem.directoryExists(path);
} }
return Promise.reject();
} }
}; };
}); });