mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	change preferred name of backup file to flows.backup
(even if it is the previous version :-) relates to Issue #184
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| node_modules | ||||
| credentials.json | ||||
| flows*.json | ||||
| flow.backup | ||||
| flows.backup | ||||
| *_cred* | ||||
| nodes/node-red-nodes/ | ||||
| .npm | ||||
|   | ||||
| @@ -153,7 +153,7 @@ var localfilesystem = { | ||||
|         var fsext = fspath.extname(flowsFile); | ||||
|         credentialsFile = fspath.join(userDir,fspath.basename(flowsFile,fsext)+"_cred"+fsext); | ||||
|         oldCredentialsFile = fspath.join(userDir,"credentials.json"); | ||||
|         flowsPrev = fspath.join(userDir,"flow.backup"); | ||||
|         flowsPrev = fspath.join(userDir,"flows.backup"); | ||||
|  | ||||
|         libDir = fspath.join(userDir,"lib"); | ||||
|         libFlowsDir = fspath.join(libDir,"flows"); | ||||
| @@ -178,7 +178,7 @@ var localfilesystem = { | ||||
|     }, | ||||
|  | ||||
|     saveFlows: function(flows) { | ||||
|         fs.rename(flowsFullPath,flowsPrev); | ||||
|         fs.renameSync(flowsFullPath,flowsPrev); | ||||
|         return nodeFn.call(fs.writeFile, flowsFullPath, JSON.stringify(flows)); | ||||
|     }, | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user