Skip to content

nboldar/copy-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy-all

Module for copying content of source directory to specified directory. It copies all content-files and folders, even if folder is empty. Structure of source directory is saved. Destination folder is creating, if it exists content of this folder is saved.

Installation

npm i copy-all

Usage

const copyAll = require('copy-all');

copyAll('./sourceDir','./destination').then( data => console.log('all copied')).catch( error => console.error(error));

How it works

Content is copying asynchronously, so function returns Promise. Relative paths resolves from directory where function is called.

About

Function for copying content of source directory to specified directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published