add NativeShell API to filesystem module

This commit is contained in:
vitorsemeano 2019-03-16 19:19:00 +00:00
parent 5cc1821e12
commit e13796e4f3

View File

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