Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))