linted and working

This commit is contained in:
Eason Goodale
2025-04-20 01:26:40 -07:00
parent 1e0a7cc313
commit b1cef74d8c
12 changed files with 121 additions and 65 deletions

View File

@@ -28,7 +28,10 @@ export function getDirectoryItems(
try {
for (const entry of fs.readdirSync(cwd, { withFileTypes: true })) {
if (entry.isDirectory()) {
dirs.push({ label: entry.name + "/", value: path.join(cwd, entry.name) });
dirs.push({
label: entry.name + "/",
value: path.join(cwd, entry.name),
});
} else if (entry.isFile() && isImage(entry.name)) {
files.push({ label: entry.name, value: path.join(cwd, entry.name) });
}