jellyfin-web/dashboard-ui/bower_components/emby-apiclient/sync/filerepository.js

50 lines
948 B
JavaScript
Raw Normal View History

2016-12-10 00:16:15 -07:00
define([], function () {
'use strict';
function getValidFileName(path) {
// TODO
return path;
}
function getFullLocalPath(pathArray) {
// TODO
return pathArray.join('/');
}
2016-12-24 12:15:27 -07:00
function getPathFromArray(pathArray) {
// TODO
return pathArray.join('/');
}
2016-12-10 00:16:15 -07:00
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,
2016-12-24 12:15:27 -07:00
getPathFromArray: getPathFromArray,
2016-12-10 00:16:15 -07:00
deleteFile: deleteFile,
deleteDirectory: deleteDirectory,
fileExists: fileExists,
getItemFileSize: getItemFileSize
};
});