Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
900 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { Node } from './node';
|
---|
| 2 | export declare type TStatNumber = number | bigint;
|
---|
| 3 | /**
|
---|
| 4 | * Statistics about a file/directory, like `fs.Stats`.
|
---|
| 5 | */
|
---|
| 6 | export declare class Stats<T = TStatNumber> {
|
---|
| 7 | static build(node: Node, bigint: false): Stats<number>;
|
---|
| 8 | static build(node: Node, bigint: true): Stats<bigint>;
|
---|
| 9 | static build(node: Node, bigint?: boolean): Stats<TStatNumber>;
|
---|
| 10 | uid: T;
|
---|
| 11 | gid: T;
|
---|
| 12 | rdev: T;
|
---|
| 13 | blksize: T;
|
---|
| 14 | ino: T;
|
---|
| 15 | size: T;
|
---|
| 16 | blocks: T;
|
---|
| 17 | atime: Date;
|
---|
| 18 | mtime: Date;
|
---|
| 19 | ctime: Date;
|
---|
| 20 | birthtime: Date;
|
---|
| 21 | atimeMs: T;
|
---|
| 22 | mtimeMs: T;
|
---|
| 23 | ctimeMs: T;
|
---|
| 24 | birthtimeMs: T;
|
---|
| 25 | dev: T;
|
---|
| 26 | mode: T;
|
---|
| 27 | nlink: T;
|
---|
| 28 | private _checkModeProperty;
|
---|
| 29 | isDirectory(): boolean;
|
---|
| 30 | isFile(): boolean;
|
---|
| 31 | isBlockDevice(): boolean;
|
---|
| 32 | isCharacterDevice(): boolean;
|
---|
| 33 | isSymbolicLink(): boolean;
|
---|
| 34 | isFIFO(): boolean;
|
---|
| 35 | isSocket(): boolean;
|
---|
| 36 | }
|
---|
| 37 | export default Stats;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.