Skip to content
Browse files

remove additional references to publish

  • Loading branch information...
1 parent 4f2a0bd commit c817b8642e5d3a06348a907041da3cef20111eae @omphalos committed Sep 14, 2012
Showing with 1 addition and 7 deletions.
  1. +0 −1 README.md
  2. +1 −6 crud-file-server.js
View
1 README.md
@@ -3,7 +3,6 @@ crud-file-server
================
This package exposes a directory and its children to create, read, update, and delete operations over http.
-Additionally, it supports change notification over faye.
Command-line usage
==================
View
7 crud-file-server.js
@@ -12,7 +12,7 @@ example usage:
server.handleRequest(port, path, req, res, vpath);
}).listen(port);
*/
-exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHeadRequests) {
+exports.handleRequest = function(vpath, path, req, res, readOnly, logHeadRequests) {
// vpath: (optional) virtual path to host in the url
// path: the file system path to serve
// readOnly: whether to allow modifications to the file
@@ -178,7 +178,6 @@ exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHe
req.on('end', function() {
if(stream.ok) {
res.end();
- publish({ set: relativePath });
}
});
stream.on('error', function(err) {
@@ -204,7 +203,6 @@ exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHe
if(err) { writeError(err); }
else {
res.end();
- publish({ remove: relativePath, set: query.rename });
}
});
} else if(query.create == 'directory') { // rename a directory
@@ -214,7 +212,6 @@ exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHe
if(err) { writeError(err); }
else {
res.end();
- publish({ set: query.relativePath });
}
});
} else {
@@ -232,7 +229,6 @@ exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHe
if(err) { writeError(err); }
else {
res.end();
- publish({ remove: relativePath });
}
});
} else { // delete a file
@@ -241,7 +237,6 @@ exports.handleRequest = function(vpath, path, req, res, publish, readOnly, logHe
if(err) { writeError(err); }
else {
res.end();
- publish({ remove: relativePath });
}
});
}

0 comments on commit c817b86

Please sign in to comment.
Something went wrong with that request. Please try again.