Jump to content

Walk a directory/Recursively: Difference between revisions

no edit summary
(Added BaCon code.)
No edit summary
Line 1,411:
 
walkDir "C:" "*.txt"</lang>
 
=={{header|Nanoquery}}==
<lang Nanoquery>import Nanoquery.IO
 
def get_files(dirname)
local_filenames = new(File).listDir(dirname)
 
filenames = {}
 
for i in range(0, len(local_filenames) - 1)
if len(local_filenames) > 0
if not new(File, local_filenames[i]).isDir()
filenames.append(local_filenames[i])
else
filenames += get_files(local_filenames[i])
end
end
end
 
return filenames
end
 
f = new(File)
for file in get_files("/")
if lower(f.getExtension(file)) = ".mp3"
println file
end
end</lang>
 
=={{header|Nim}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.