mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add file extension into flow name of library automatically (#1331)
This commit is contained in:
committed by
Nick O'Leary
parent
c93870316c
commit
b3ffd33507
@@ -419,6 +419,9 @@ var localfilesystem = {
|
||||
if (settings.readOnly) {
|
||||
return when.resolve();
|
||||
}
|
||||
if (type === "flows" && !path.endsWith(".json")) {
|
||||
path += ".json";
|
||||
}
|
||||
var fn = fspath.join(libDir, type, path);
|
||||
var headers = "";
|
||||
for (var i in meta) {
|
||||
|
Reference in New Issue
Block a user