Skip to content

Commit

Permalink
fix: Wrong File Size (over 4GB) during readdir
Browse files Browse the repository at this point in the history
  • Loading branch information
roy committed Sep 13, 2024
1 parent 0415917 commit 542400f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket-sftp/lib/sftp-misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export class SftpAttributes implements IStats {

if (typeof stats.size !== "undefined") {
flags |= SftpAttributeFlags.SIZE;
this.size = stats.size | 0;
this.size = stats.size ?? 0;
}

if (
Expand Down

0 comments on commit 542400f

Please sign in to comment.