Walk a directory/Recursively: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|Julia}}: updated to Julia 1.2) |
||
Line 1,211: | Line 1,211: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
{{works with|Julia| |
{{works with|Julia|1.2}} |
||
<lang julia>rootpath = "/home/user/music" |
<lang julia>rootpath = "/home/user/music" |
||
Line 1,218: | Line 1,218: | ||
for (root, dirs, files) in walkdir(rootpath) |
for (root, dirs, files) in walkdir(rootpath) |
||
for file in files |
for file in files |
||
if |
if occursin(pattern, file) println(file) end |
||
end |
end |
||
end</lang> |
end</lang> |