We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1261f commit 4abcb92Copy full SHA for 4abcb92
1 file changed
implement-shell-tools/ls/ls.js
@@ -20,8 +20,7 @@ try {
20
const filePath = filePathArg || process.cwd();
21
let files = await fs.readdir(filePath);
22
23
- const currentDir = process.cwd();
24
- const files = await fs.readdir(currentDir);
+ if (!options.a) files = files.filter((file) => !file.startsWith("."));
25
26
if (options["1"]) {
27
for (const file of files) {
0 commit comments