mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Hide control images from ui image viewer
This commit is contained in:
@@ -45,7 +45,7 @@ function findImagesRecursively(dir: string): string[] {
|
||||
const itemPath = path.join(dir, item);
|
||||
const stat = fs.statSync(itemPath);
|
||||
|
||||
if (stat.isDirectory()) {
|
||||
if (stat.isDirectory() && item !== '_controls' && !item.startsWith('.')) {
|
||||
// If it's a directory, recursively search it
|
||||
results = results.concat(findImagesRecursively(itemPath));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user