| 1234567891011121314151617181920212223242526272829303132 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.NfsFsDirent = void 0;
- class NfsFsDirent {
- constructor(name, type) {
- this.name = name;
- this.type = type;
- }
- isDirectory() {
- return this.type === 2;
- }
- isFile() {
- return this.type === 1;
- }
- isBlockDevice() {
- return this.type === 3;
- }
- isCharacterDevice() {
- return this.type === 4;
- }
- isSymbolicLink() {
- return this.type === 5;
- }
- isFIFO() {
- return this.type === 7;
- }
- isSocket() {
- return this.type === 6;
- }
- }
- exports.NfsFsDirent = NfsFsDirent;
- //# sourceMappingURL=NfsFsDirent.js.map
|