Permalink
Browse files

make note

  • Loading branch information...
1 parent bf26bc2 commit 3de4465636348d7089a59f9a0b257021e4241980 @alanszlosek committed Dec 17, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 ftpd.js
View
10 ftpd.js
@@ -17,13 +17,6 @@ TODO:
*/
-function fixPath(fs, path) {
- if (path.charAt(0) == '/')
- return path.trim();
- else
- return fs.cwd() + path.trim();
-}
-
// host should be an IP address, and sandbox a path without trailing slash for now
function createServer(host, sandbox) {
// make sure host is an IP address, otherwise DATA connections will likely break
@@ -518,6 +511,9 @@ function createServer(host, sandbox) {
socket.write("553 Could not create file\r\n");
dataSocket.end();
});
+ destination.on("close", function() {
+ // Finished
+ });
logIf(3, "File opened/created: " + filename, socket);

0 comments on commit 3de4465

Please sign in to comment.