backup
Advanced tools
Comparing version 1.0.0-6 to 1.0.0-7
@@ -25,2 +25,3 @@ // Copyright Peter Širka, Web Site Design s.r.o. (www.petersirka.sk) | ||
var zlib = require('zlib'); | ||
var padding = 120; | ||
@@ -142,3 +143,3 @@ function Backup() { | ||
if (self.filter(o.substring(length))) | ||
fs.appendFileSync(self.fileName, (o.replace(self.path, '') + '/').padRight(100) + ':#\n'); | ||
fs.appendFileSync(self.fileName, (o.replace(self.path, '').replace(/\\/g, '/') + '/').padRight(padding) + ':#\n'); | ||
}); | ||
@@ -169,4 +170,4 @@ | ||
var name = fileName.replace(self.path, ''); | ||
fs.appendFile(self.fileName, name.padRight(100) + ':' + data.toString('base64') + '\n', function(err) { | ||
var name = fileName.replace(self.path, '').replace(/\\/g, '/'); | ||
fs.appendFile(self.fileName, name.padRight(padding) + ':' + data.toString('base64') + '\n', function(err) { | ||
self.$compress(); | ||
@@ -173,0 +174,0 @@ }); |
{ | ||
"name": "backup", | ||
"version": "1.0.0-6", | ||
"version": "1.0.0-7", | ||
"description": "Web Site backup & restore", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11503
261