Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node module to copy files like copy /b on windows
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
License
docs/jsdoc
examples
logs
node_modules
specs
src
.gitattributes
.gitignore
Readme.md
package.json

Readme.md

stream-copy-file

Node module to copy files like copy /b on windows.

Installation

npm install stream-copy-file

Usage

Copy a file then call a callback.

var streamCopyFile = require('stream-copy-file');
var source = 'aFile';
var target = 'bFile';
function callback (err) {
    if (err) {
        throw err;
    }
    console.log('files exist, what now?');
}
streamCopyFile(source, target, callback);
Something went wrong with that request. Please try again.