Walk a directory/Non-recursively: Difference between revisions
Content added Content deleted
(rearranges in order of the language.) |
(Added Elixir) |
||
Line 442: | Line 442: | ||
.bash_profile |
.bash_profile |
||
.bash_profile~</lang> |
.bash_profile~</lang> |
||
=={{header|Elixir}}== |
|||
<lang elixir># current directory |
|||
IO.inspect File.ls! |
|||
dir = "/users/public" |
|||
IO.inspect File.ls!(dir)</lang> |
|||
{{out}} |
|||
<pre> |
|||
["check.exs", "e.bat", "foo", "input.txt", "test.beam", "test.exs", "test.txt"] |
|||
["Desktop", "desktop.ini", "Documents", "Downloads", "Favorites", "Libraries", |
|||
"Music", "Pictures", "Recorded TV", "Videos"] |
|||
</pre> |
|||
=={{header|Emacs Lisp}}== |
=={{header|Emacs Lisp}}== |