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

19 lines
561 B
JavaScript
Raw Normal View History

define([], function () {
'use strict';
2018-10-23 01:05:09 +03:00
return {
fileExists: function (path) {
if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.fileExists(path);
}
2019-03-27 15:38:37 +01:00
return Promise.reject();
2018-10-23 01:05:09 +03:00
},
directoryExists: function (path) {
if (window.NativeShell && window.NativeShell.FileSystem) {
return window.NativeShell.FileSystem.directoryExists(path);
}
2019-03-27 15:38:37 +01:00
return Promise.reject();
2018-10-23 01:05:09 +03:00
}
};
});