const tar = require('tar');
tar.c(
{
gzip: false,
file: 'tarDemo.tar', // exported file name
C: '/home/koderplace/tarDemo', // The path what you want to export
sync: true, // flag helpful to write files synchronously
},
['.'], // Write only sub folders
);
0 Comments
Please Login to Comment Here