mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 11:58:20 -07:00
50 lines
948 B
JavaScript
50 lines
948 B
JavaScript
define([], function () {
|
|
'use strict';
|
|
|
|
function getValidFileName(path) {
|
|
|
|
// TODO
|
|
return path;
|
|
}
|
|
|
|
|
|
function getFullLocalPath(pathArray) {
|
|
|
|
// TODO
|
|
return pathArray.join('/');
|
|
|
|
}
|
|
|
|
function getPathFromArray(pathArray) {
|
|
|
|
// TODO
|
|
return pathArray.join('/');
|
|
|
|
}
|
|
|
|
function deleteFile(path) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
function deleteDirectory(path) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
function fileExists(path) {
|
|
return Promise.resolve();
|
|
}
|
|
|
|
function getItemFileSize(path) {
|
|
return Promise.resolve(0);
|
|
}
|
|
|
|
return {
|
|
getValidFileName: getValidFileName,
|
|
getFullLocalPath: getFullLocalPath,
|
|
getPathFromArray: getPathFromArray,
|
|
deleteFile: deleteFile,
|
|
deleteDirectory: deleteDirectory,
|
|
fileExists: fileExists,
|
|
getItemFileSize: getItemFileSize
|
|
};
|
|
}); |