UNPKG

jsdav-ext

Version:

jsDAV allows you to easily add WebDAV support to a NodeJS application. jsDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.

29 lines (26 loc) 988 B
/* * @package jsDAV * @subpackage DAV * @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 */ "use strict"; var Base = require("./../../shared/base"); var Exc = require("./../../shared/exceptions"); /** * iQuota interface * * Implement this interface to add the ability to return quota information. The ObjectTree * will check for quota information on any given node. If the information is not available it will * attempt to fetch the information from the root node. */ var jsDAV_iQuota = module.exports = Base.extend({ /** * Returns the quota information * * This method MUST return an array with 2 values, the first being the total used space, * the second the available space (in bytes) */ getQuotaInfo: function(callback) { callback(Exc.notImplementedYet()); } });