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:
parent
5cc1821e12
commit
e13796e4f3
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue