0.11.0 Multi LW
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user