task-registry-file-copy

0.1.6 • Public • Published

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

Package Sidebar

Install

npm i task-registry-file-copy

Weekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • riceball