Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Conway-Jones
8aa65e7761 fix comments to be what is happening. 2024-11-11 16:28:42 +00:00
Dave Conway-Jones
fd4f747706 If creds dont exist - create in flows dir rather than userdir
So they stay alongside flows
2024-11-11 16:26:20 +00:00

View File

@@ -85,7 +85,10 @@ function init(_settings, _runtime) {
var ffBase = fspath.basename(flowsFullPath,ffExt);
flowsFileBackup = getBackupFilename(flowsFullPath);
credentialsFile = fspath.join(settings.userDir,ffBase+"_cred"+ffExt);
credentialsFile = fspath.join(settings.userDir,ffBase+"_cred"+ffExt); // if creds file exists in "old" location userdir then use it
if (!fs.existsSync(credentialsFile)) { // if not then locate it next to flows file in flows dir
credentialsFile = fspath.join(fspath.dirname(flowsFullPath), ffBase+"_cred"+ffExt);
}
credentialsFileBackup = getBackupFilename(credentialsFile)
var setupProjectsPromise;