Dont try to list hidden files in datasets
This commit is contained in:
1 parent
171535833a
commit
ac82ebd852
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user