UNPKG

memfs

Version:

In-memory file-system with Node's fs API.

39 lines 917 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FsaNodeDirent = void 0; class FsaNodeDirent { constructor(name, parentPath, kind) { this.name = name; this.parentPath = parentPath; this.kind = kind; /** * @deprecated Will be removed at any time. * @see https://nodejs.org/api/deprecations.html#DEP0178 */ this.path = ''; this.path = parentPath; } isDirectory() { return this.kind === 'directory'; } isFile() { return this.kind === 'file'; } isBlockDevice() { return false; } isCharacterDevice() { return false; } isSymbolicLink() { return false; } isFIFO() { return false; } isSocket() { return false; } } exports.FsaNodeDirent = FsaNodeDirent; //# sourceMappingURL=FsaNodeDirent.js.map