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