Skip to content

Commit

Permalink
merged feature/offline into offline
Browse files Browse the repository at this point in the history
  • Loading branch information
Linh Nguyen committed Jul 18, 2011
2 parents 7ecbc33 + 107e13f commit 55e95b2
Show file tree
Hide file tree
Showing 62 changed files with 2,325 additions and 614 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
[submodule "support/node-o3-xml-v4"]
path = support/node-o3-xml-v4
url = http://github.com/ajaxorg/node-o3-xml-v4.git
[submodule "support/node-sftp"]
path = support/node-sftp
url = git://github.com/ajaxorg/node-sftp.git
[submodule "support/node-ssh"]
path = support/node-ssh
url = [email protected]:ajaxorg/node-ssh.git
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2010 Mike de Boer
Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions lib/DAV/directory.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand Down
9 changes: 5 additions & 4 deletions lib/DAV/exceptions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand Down Expand Up @@ -72,9 +72,10 @@ exports.jsDAV_Exception = function(msg, extra) {
}

function afterHeaders() {
cbtostring(null, headers + "HTTP code: " + _self.code + "\n"
var msg = headers + "HTTP code: " + _self.code + "\n"
+ "Exception type: " + _self.type + "\n"
+ "Message: " + _self.message);
+ "Message: " + _self.message;
return cbtostring ? cbtostring(null, msg) : msg;
}
};
};
Expand Down
4 changes: 2 additions & 2 deletions lib/DAV/file.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand Down
12 changes: 6 additions & 6 deletions lib/DAV/fs/directory.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand All @@ -14,7 +14,7 @@ var jsDAV = require("./../../jsdav"),
jsDAV_iQuota = require("./../iQuota").jsDAV_iQuota,

Fs = require("fs"),
Async = require("./../../../support/async.js/lib/async/index"),
Async = require("./../../../support/async.js"),
Exc = require("./../exceptions");

function jsDAV_FS_Directory(path) {
Expand All @@ -38,10 +38,10 @@ exports.jsDAV_FS_Directory = jsDAV_FS_Directory;
this.createFile = function(name, data, enc, cbfscreatefile) {
var newPath = this.path + "/" + name;
if (data.length === 0) { //new node version will support writing empty files?
data = "empty file.";
enc = "utf8";
data = new Buffer(0);
enc = "binary";
}
Fs.writeFile(newPath, data, enc || "utf8", cbfscreatefile)
Fs.writeFile(newPath, data, enc || "utf8", cbfscreatefile);
};

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/DAV/fs/file.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand Down
4 changes: 2 additions & 2 deletions lib/DAV/fs/node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright (C) 2010 Mike de Boer. All rights reserved.
* @author Mike de Boer <mike AT ajax DOT org>
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/

Expand Down
Loading

0 comments on commit 55e95b2

Please sign in to comment.