wren-cli icon indicating copy to clipboard operation
wren-cli copied to clipboard

Investigate stat size on Windows

Open ruby0x1 opened this issue 5 years ago • 2 comments

https://github.com/wren-lang/wren-cli/commit/f5f08bbbf5fb96c2e0f092539b0ce39ba1d8263a

Goal is just to validate the intent here. It seems to behave as intended (stat on a directory has no size, unlike unix-likes)

ruby0x1 avatar Jun 05 '20 18:06 ruby0x1

On Windows systems, the Win32 function for getting file size (ie. GetFileSizeEx) always returns zero for directories. Even Wine mimics this behavior.

fermian avatar Mar 23 '21 13:03 fermian

This looks fair to me unless we're going to start having different tests for different platforms...

joshgoebel avatar Apr 28 '21 10:04 joshgoebel