1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

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 { return {
fileExists: function (path) { fileExists: function (path) {
return Promise.reject(); if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.fileExists(path);
}
}, },
directoryExists: function (path) { directoryExists: function (path) {
return Promise.reject(); if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.directoryExists(path);
}
} }
}; };
}); });