bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-17 17:44:03 +03:00
parent 84907d9d3b
commit bcc1ace919
2 changed files with 3 additions and 3 deletions

View File

@ -1627,7 +1627,7 @@ var FileSystemWriterActions = actions.Actions({
logger = logger || this.logger
logger = logger && logger.push('Backup')
do{
do {
var d = Date.timeStamp()
var backup_dir = `${pathlib.dirname(path)}/.${pathlib.basename(path)}.${d}`
} while(fse.existsSync(backup_dir))

View File

@ -336,7 +336,7 @@ module.patchDate = function(date){
date.prototype.toShortDate = function(show_ms){
return ''
+ this.getFullYear()
+'-'+ ('0'+this.getMonth()+1).slice(-2)
+'-'+ ('0'+(this.getMonth()+1)).slice(-2)
+'-'+ ('0'+this.getDate()).slice(-2)
+' '+ ('0'+this.getHours()).slice(-2)
+':'+ ('0'+this.getMinutes()).slice(-2)
@ -347,7 +347,7 @@ module.patchDate = function(date){
date.prototype.getTimeStamp = function(show_ms){
return ''
+ this.getFullYear()
+ ('0'+this.getMonth()+1).slice(-2)
+ ('0'+(this.getMonth()+1)).slice(-2)
+ ('0'+this.getDate()).slice(-2)
+ ('0'+this.getHours()).slice(-2)
+ ('0'+this.getMinutes()).slice(-2)