You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a script using Deno.stat on a file located on an exFAT-formatted drive (e.g. SD card) causes a TypeError: Cannot convert a BigInt value to a number. The issue does not occur on NTFS-formatted drives. Additionally, the issue could not be reproduced on macOS Sequoia 15.1.1 when performing the same steps.
Steps to Reproduce
Prepare an exFAT-formatted drive (e.g., G:\ drive).
Create a test file test.txt on the drive:
touch G:\test.txt
Create a test script test.ts with the following content:
console.log(awaitDeno.stat("G:\\test.txt"));
Execute the script with the necessary permission:
deno run --allow-read test.ts
Actual Behavior
The following error occurs:
error: Uncaught (in promise) TypeError: Cannot convert a BigInt value to a number
console.log(await Deno.stat("G:\\test.txt"));
^
at new Date (<anonymous>)
at parseFileInfo (ext:deno_fs/30_fs.js:381:41)
at Object.stat (ext:deno_fs/30_fs.js:410:10)
at eventLoopTick (ext:core/01_core.js:175:7)
at async file:///C:/path/to/test.ts:1:13
Expected Behavior
The script should output the file information without throwing an error.
The text was updated successfully, but these errors were encountered:
mono0x
changed the title
TypeError in Deno.stats with Windows and exFAT-formatted drives
TypeError in Deno.stat with Windows and exFAT-formatted drives
Dec 9, 2024
mono0x
changed the title
TypeError in Deno.stat with Windows and exFAT-formatted drives
TypeError in Deno.stat on Windows with exFAT-formatted drives
Dec 9, 2024
Running a script using
Deno.stat
on a file located on an exFAT-formatted drive (e.g. SD card) causes aTypeError: Cannot convert a BigInt value to a number
. The issue does not occur on NTFS-formatted drives. Additionally, the issue could not be reproduced on macOS Sequoia 15.1.1 when performing the same steps.Steps to Reproduce
test.txt
on the drive:test.ts
with the following content:Actual Behavior
The following error occurs:
Expected Behavior
The script should output the file information without throwing an error.
The text was updated successfully, but these errors were encountered: