From 542400fd6983f8a8b930257de1450ac301162e5c Mon Sep 17 00:00:00 2001 From: roy Date: Fri, 13 Sep 2024 23:07:00 +0800 Subject: [PATCH] fix: Wrong File Size (over 4GB) during readdir --- websocket-sftp/lib/sftp-misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sftp/lib/sftp-misc.ts b/websocket-sftp/lib/sftp-misc.ts index 3f5d3d3..87ef469 100644 --- a/websocket-sftp/lib/sftp-misc.ts +++ b/websocket-sftp/lib/sftp-misc.ts @@ -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 (