How to use the @pylonide/jsdav/lib/DAV/interfaces/iNode.extend function in @pylonide/jsdav

To help you get started, we’ve selected a few @pylonide/jsdav examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pylonide / pylon / plugins-server / pylon.fs / fs / node.js View on Github external
/*
 * @package jsDAV
 * @subpackage DAV
 */
"use strict";

var jsDAV_iNode = require("@pylonide/jsdav/lib/DAV/interfaces/iNode");
var Exc         = require("@pylonide/jsdav/lib/shared/exceptions");
var Util        = require("@pylonide/jsdav/lib/shared/util");

var jsDAV_FS_Node = module.exports = jsDAV_iNode.extend({
  initialize: function(vfs, path, stat) {
    this.vfs = vfs;
    this.path = path;
    this.$stat = stat;
  },

  /**
   * Returns the name of the node
   *
   * @return {string}
   */
  getName: function() {
    return Util.splitPath(this.path)[1];
  },

  /**

@pylonide/jsdav

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.

MIT
Latest version published 7 months ago

Package Health Score

61 / 100
Full package analysis

Similar packages