mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
linted and working
This commit is contained in:
@@ -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) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user