Skip to content

Commit

Permalink
streamich#735 - add parentPath property to Dirent
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulKa committed Sep 5, 2024
1 parent 1c9db5d commit ad20e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Dirent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ export class Dirent implements IDirent {
dirent.name = strToEncoding(link.getName(), encoding);
dirent.mode = mode;
dirent.path = link.getParentPath();
dirent.parentPath = dirent.path;

return dirent;
}

name: TDataOut = '';
path = '';
parentPath = '';
private mode: number = 0;

private _checkModeProperty(property: number): boolean {
Expand Down

0 comments on commit ad20e48

Please sign in to comment.