mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
18 lines
No EOL
560 B
JavaScript
18 lines
No EOL
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();
|
|
}
|
|
};
|
|
}); |