mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Removing orphaned function.
This commit is contained in:
parent
debd5c4496
commit
4a514b9060
@ -123,23 +123,6 @@ function getFileBody(root,path) {
|
|||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|
||||||
function writeFile(root,path,meta,body,res) {
|
|
||||||
var fn = fspath.join(root,path);
|
|
||||||
var headers = "";
|
|
||||||
for (var i in meta) {
|
|
||||||
if (meta.hasOwnProperty(i)) {
|
|
||||||
headers += "// "+i+": "+meta[i]+"\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mkdirp(fspath.dirname(fn), function (err) {
|
|
||||||
fs.writeFile(fn,headers+body,function(err) {
|
|
||||||
//TODO: handle error
|
|
||||||
res.writeHead(204, {'Content-Type': 'text/plain'});
|
|
||||||
res.end();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
var localfilesystem = {
|
var localfilesystem = {
|
||||||
init: function(_settings) {
|
init: function(_settings) {
|
||||||
settings = _settings;
|
settings = _settings;
|
||||||
|
Loading…
Reference in New Issue
Block a user