Unix/ls: Difference between revisions

Content deleted Content added
→‎{{header|Rust}}: Remove error handling and let the program fail directly.
+ D
Line 17:
a
b</pre>
 
=={{header|D}}==
<lang d>void main() {
import std.stdio, std.file, std.path;
 
foreach (const string path; dirEntries(getcwd, SpanMode.shallow))
path.baseName.writeln;
}</lang>
 
=={{header|Go}}==