Walk a directory/Recursively: Difference between revisions

no edit summary
(Added Elixir)
No edit summary
Line 1,662:
Works on Windows with ooRexx and Regina (not much REXX code in it)
<lang rexx>'dir /s /b "%windir%\System32\*.exe"'</lang>
 
=={{header|Ring}}==
<lang ring>
see "Testing DIR() " + nl
mylist = dir("C:\Ring")
for x in mylist
if x[2]
see "Directory : " + x[1] + nl
else
see "File : " + x[1] + nl
ok
next
see "Files count : " + len(mylist)
</lang>
Output:
<pre>
Testing DIR()
Directory : bert
Directory : bin
Directory : calmosoft
Directory : doc
Directory : FlappyBird
Directory : gameengine
Directory : html
Directory : images
File : License.txt
File : music1.wav
File : ReadMe.txt
Directory : ring-master
Directory : samples
Directory : StarsFighter
File : start.bat
Directory : stdlib
Directory : SuperMan2016
File : unixdict.txt
Directory : weblib
Files count : 19
</pre>
 
=={{header|Ruby}}==
2,468

edits