Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

snowyu/task-registry-file-copy.js

Open more actions menu

Repository files navigation

task-registry-file-copy npm

Build Status Code Climate Test Coverage downloads license

The task to copy a file object to dest dir.

Usage

Task  = require('task-registry')
require('task-registry-file-copy') // register file copy task to Task Factory

copyFileTask = Task('FileCopy')
copyFileTask.executeSync {
    cwd: '/the/current/working/dir'
  , path: 'the/src/file/path'
  , dest: '/the/dest/file/path'
  , overwrite: true //defaults to false
}

API

  • should copy folder resource to dest now.
  • ignoreEmptyFile Boolean: should ignore the file with the empty contents. defaults to false.

TODO

License

MIT

About

The task to copy a file object to dest dir.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.