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:copy

file:copy

Copies a file from source to destination, preserving file permissions

Options

NameTypeDescription
sourcestringPath to the source file
deststringPath to the destination file

Outputs

NameTypeDescription
sourcestringResolved absolute path of the source file
deststringResolved absolute path of the destination file

Example

name: Copy a template into place
actions:
  - name: copied
    component: file:copy
    vars:
      source: templates/base.md
      dest: out/draft.md
Edit or read the source on GitHub
PreviousFileNext file:find

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub