mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add NativeShell API to filesystem module
This commit is contained in:
parent
5cc1821e12
commit
e13796e4f3
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Reference in New Issue
Block a user