mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 19:21:39 +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 itemPath = path.join(dir, item);
|
||||||
const stat = fs.statSync(itemPath);
|
const stat = fs.statSync(itemPath);
|
||||||
|
|
||||||
if (stat.isDirectory()) {
|
if (stat.isDirectory() && item !== '_controls' && !item.startsWith('.')) {
|
||||||
// If it's a directory, recursively search it
|
// If it's a directory, recursively search it
|
||||||
results = results.concat(findImagesRecursively(itemPath));
|
results = results.concat(findImagesRecursively(itemPath));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user