Walk a directory/Non-recursively: Difference between revisions
Added Arturo implementation
Not a robot (talk | contribs) (Add 8080 assembly) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 377:
return pdfNames as list
--> EXAMPLE RESULT: {"About Stacks.pdf", "AppleScriptLanguageGuide.pdf", "Artistic Orchestration.pdf", "DiskWarrior Manual.pdf", "RFC 2445 (iCalendar spec).pdf", "RFC 4180 (CSV spec).pdf", "robinson_jeffers_2004_9.pdf", "ShellScripting.pdf"}</lang>
=={{header|Arturo}}==
<lang rebol>; list all files at current path
print list "."
; get all files at given path
; and select only the ones we want
; just select the files with .md extension
select list "some/path"
=> [".md" = extract.extension]
; just select the files that contain "test"
select list "some/path"
=> [in? "test"]</lang>
=={{header|AutoHotkey}}==
|