Dirent.d.ts 535 B

12345678910111213141516171819
  1. import { Link } from './node';
  2. import { TEncodingExtended, TDataOut } from './encoding';
  3. /**
  4. * A directory entry, like `fs.Dirent`.
  5. */
  6. export declare class Dirent {
  7. static build(link: Link, encoding: TEncodingExtended | undefined): Dirent;
  8. name: TDataOut;
  9. private mode;
  10. private _checkModeProperty;
  11. isDirectory(): boolean;
  12. isFile(): boolean;
  13. isBlockDevice(): boolean;
  14. isCharacterDevice(): boolean;
  15. isSymbolicLink(): boolean;
  16. isFIFO(): boolean;
  17. isSocket(): boolean;
  18. }
  19. export default Dirent;