Dont try to list hidden files in datasets
This commit is contained in:
parent
171535833a
commit
ac82ebd852
|
|
@ -51,7 +51,7 @@ function findImagesRecursively(dir: string): string[] {
|
|||
} else {
|
||||
// If it's a file, check if it's an image
|
||||
const ext = path.extname(itemPath).toLowerCase();
|
||||
if (imageExtensions.includes(ext)) {
|
||||
if (imageExtensions.includes(ext) && !item.startsWith('.')) {
|
||||
results.push(itemPath);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue