How to use the @pylonide/jsdav/lib/DAV/tree.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 / tree.js View on Github external
var jsDAV_FS_File = require("./file");

var Exc = require("@pylonide/jsdav/lib/shared/exceptions");
var Path = require("path");


/**
 * jsDAV_Tree_Filesystem
 *
 * Creates this tree
 * Supply the path you'd like to share.
 *
 * @param {Object} vfs
 * @contructor
 */
var jsDAV_Tree_Filesystem = module.exports = jsDAV_Tree.extend({
  initialize: function(vfs, basePath) {
    this.vfs = vfs;
    this.basePath = basePath || "";
  },

  /**
   * Returns a new node for the given path
   *
   * @param string path
   * @return void
   */
  getNodeForPath: function(path, callback) {
    var self = this;
    path = this.getRealPath(path);
    var nicePath = this.stripSandbox(path);
    if (!this.insideSandbox(path))

@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