Skip to content

Commit 3f93af5

Browse files
authored
Merge pull request #4 from roycwc/main
fix: Wrong File Size (over 4GB) during readdir
2 parents 0415917 + 542400f commit 3f93af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket-sftp/lib/sftp-misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class SftpAttributes implements IStats {
460460

461461
if (typeof stats.size !== "undefined") {
462462
flags |= SftpAttributeFlags.SIZE;
463-
this.size = stats.size | 0;
463+
this.size = stats.size ?? 0;
464464
}
465465

466466
if (

0 commit comments

Comments
 (0)