find-files-by-extension ( path extension -- seq )
Searching directories

Prev:find-files-in-directories ( directories quot: ( ... name -- ... ? ) -- paths/f )
Next:find-files-by-extensions ( path extensions -- seq )


Vocabulary
io.directories.search

Inputs and outputs
patha pathname string
extensiona file extension
seqa sequence


Word description
Searches a directory for all files with the given extension. File extension and filenames are converted to lower-case and compared using the tail? word. The file extension should contain the period.

Examples
USING: io.directories.search ; "/" ".mp3" find-by-extension


Definition