0.11.0 Multi LW

This commit is contained in:
2026-03-17 19:58:32 +00:00
parent 16443c8a45
commit 16c783e1aa
25 changed files with 811 additions and 960 deletions
+5 -9
View File
@@ -864,6 +864,10 @@ function buildJobDisplayTitle(job = null) {
return String(job.title || job.detected_title || `Job #${job.id || '-'}`).trim() || '-';
}
function isHiddenDirectoryName(value) {
return String(value || '').trim().startsWith('.');
}
function isFilesystemRootPath(inputPath) {
const raw = String(inputPath || '').trim();
if (!raw) {
@@ -1530,14 +1534,6 @@ class HistoryService {
};
}
async getDatabaseRows(filters = {}) {
const jobs = await this.getJobs(filters);
return jobs.map((job) => ({
...job,
rawFolderName: job.raw_path ? path.basename(job.raw_path) : null
}));
}
async getOrphanRawFolders() {
const settings = await settingsService.getSettingsMap();
const rawDirs = getConfiguredMediaPathList(settings, 'raw_dir');
@@ -1586,7 +1582,7 @@ class HistoryService {
const dirEntries = fs.readdirSync(rawDir, { withFileTypes: true });
for (const entry of dirEntries) {
if (!entry.isDirectory()) {
if (!entry.isDirectory() || isHiddenDirectoryName(entry.name)) {
continue;
}