@neuralnomads/codenomad 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/filesystem/browser.js +3 -4
- package/dist/opencode-config/package.json +2 -1
- package/package.json +2 -1
- package/public/assets/index-C7GIedAD.js +1 -0
- package/public/assets/index-DAv6RUOV.css +1 -0
- package/public/assets/loading-BwDYSAEd.js +1 -0
- package/public/assets/loading-CmEVQgyj.css +1 -0
- package/public/assets/main-CPMBg7Qb.js +184 -0
- package/public/index.html +3 -3
- package/public/loading.html +4 -4
- package/public/ui-version.json +1 -1
- package/public/assets/index-Ciqv3YgW.js +0 -1
- package/public/assets/index-D0YCVzdv.css +0 -1
- package/public/assets/loading-CnHVCykW.js +0 -1
- package/public/assets/loading-DHeOnB4V.css +0 -1
- package/public/assets/main-CgwL5PpX.js +0 -184
|
@@ -169,19 +169,18 @@ export class FileSystemBrowser {
|
|
|
169
169
|
const dirents = fs.readdirSync(directory, { withFileTypes: true });
|
|
170
170
|
const results = [];
|
|
171
171
|
for (const entry of dirents) {
|
|
172
|
-
if (!options.includeFiles && !entry.isDirectory()) {
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
172
|
const absoluteEntryPath = path.join(directory, entry.name);
|
|
176
173
|
let stats;
|
|
177
174
|
try {
|
|
175
|
+
// Use fs.statSync (not Dirent.isDirectory) so symlinks to directories
|
|
176
|
+
// are treated as directories in directory-only listings.
|
|
178
177
|
stats = fs.statSync(absoluteEntryPath);
|
|
179
178
|
}
|
|
180
179
|
catch {
|
|
181
180
|
// Skip entries we cannot stat (insufficient permissions, etc.)
|
|
182
181
|
continue;
|
|
183
182
|
}
|
|
184
|
-
const isDirectory =
|
|
183
|
+
const isDirectory = stats.isDirectory();
|
|
185
184
|
if (!options.includeFiles && !isDirectory) {
|
|
186
185
|
continue;
|
|
187
186
|
}
|