Docs
IntroductionQuickstart

Guides

Workflow anatomyTemplating languageControl flowInference

Go further

CompositionLifecycleCookbookBrowser extension
Components
App
app:fieldapp:field:createapp:field:deleteapp:field:updateapp:fieldsapp:file:saveapp:recordapp:record:deleteapp:record:historyapp:record:insertapp:record:updateapp:records:queryapp:schemaapp:schema:createapp:schema:create:manyapp:schema:deleteapp:schema:updateapp:schemasapp:tableapp:table:createapp:table:deleteapp:table:updateapp:tables
CSV
csv:mergecsv:shrinkcsv:unchunk
Dir
dir:readdir:write
Each
each
Error
error
Event
event:emit
Exec
exec
File
file:copyfile:findfile:json:unchunkfile:readfile:write
Group
group
HTTP
http
Inference
inferenceinference:estimateinference:models
Map
map
Print
print
Sleep
sleep
Template
template
Var
var
XML
xml
Docs/Workflows/Components/File/file:find

file:find

Options

NameTypeDescription
pathstringFile or directory to search; directories are scanned recursively
ext[]stringFile extensions to restrict the search (e.g. ["go", "md"])
patternstringRegex pattern to match within file contents
matchesmap[string]stringMaps capture group index (as string) to an output key name

Example

name: Find post files and capture their slug
actions:
  - name: posts
    component: file:find
    vars:
      path: ./content
      ext: md
      pattern: '^post-(.*)\.md$'
      matches:
        "1": slug
Edit or read the source on GitHub
Previousfile:copyNext file:json:unchunk

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub