Skip to content

Commit

Permalink
Merge pull request #4 from roycwc/main
Browse files Browse the repository at this point in the history
fix: Wrong File Size (over 4GB) during readdir
  • Loading branch information
williamstein authored Sep 13, 2024
2 parents 0415917 + 542400f commit 3f93af5
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 3f93af5

Please sign in to comment.