Add file extension into flow name of library automatically (#1331)

This commit is contained in:
Kazuhito Yokoi
2017-07-09 19:58:17 +09:00
committed by Nick O'Leary
parent c93870316c
commit b3ffd33507
2 changed files with 48 additions and 10 deletions

View File

@@ -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) {