Dirent.d.ts 825 B

1234567891011121314151617181920212223242526
  1. import { Link } from '@jsonjoy.com/fs-core';
  2. import { TEncodingExtended, TDataOut } from '@jsonjoy.com/fs-node-utils';
  3. import type { IDirent } from '@jsonjoy.com/fs-node-utils/lib/types/misc';
  4. /**
  5. * A directory entry, like `fs.Dirent`.
  6. */
  7. export declare class Dirent implements IDirent {
  8. static build(link: Link, encoding: TEncodingExtended | undefined): Dirent;
  9. name: TDataOut;
  10. parentPath: string;
  11. private mode;
  12. /**
  13. * @deprecated Will be removed at any time.
  14. * @see https://nodejs.org/api/deprecations.html#DEP0178
  15. */
  16. path: string;
  17. private _checkModeProperty;
  18. isDirectory(): boolean;
  19. isFile(): boolean;
  20. isBlockDevice(): boolean;
  21. isCharacterDevice(): boolean;
  22. isSymbolicLink(): boolean;
  23. isFIFO(): boolean;
  24. isSocket(): boolean;
  25. }
  26. export default Dirent;