maxogden/cptar

语言: JavaScript

git: https://github.com/maxogden/cptar

使用内存tar流中的递归文件和文件夹副本
recursive file and folder copy using in memory tar streams
README.md (中文)

cptar

使用内存tar流中的递归文件和文件夹副本

用法

传入源路径和目标路径。所有文件/文件夹将从源复制到目标。

如果目标文件夹不存在,将创建它。

var cptar = require('cptar')

cptar('./source', './dest', function (err) {
  if (err) throw err
  // your data has been copied
})

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

cptar

recursive file and folder copy using in memory tar streams

usage

Pass in source and destination paths. All files/folders will be copied from source to destination.

The destination folder will be created if it does not exist.

var cptar = require('cptar')

cptar('./source', './dest', function (err) {
  if (err) throw err
  // your data has been copied
})