mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-20 04:18:19 -07:00
18 lines
560 B
JavaScript
18 lines
560 B
JavaScript
define([], function () {
|
|
'use strict';
|
|
|
|
return {
|
|
fileExists: function (path) {
|
|
if (window.NativeShell && window.NativeShell.FileSystem) {
|
|
return window.NativeShell.FileSystem.fileExists(path);
|
|
}
|
|
return Promise.reject();
|
|
},
|
|
directoryExists: function (path) {
|
|
if (window.NativeShell && window.NativeShell.FileSystem) {
|
|
return window.NativeShell.FileSystem.directoryExists(path);
|
|
}
|
|
return Promise.reject();
|
|
}
|
|
};
|
|
}); |