On Windows, `stat` on a directory reports size as 0, causing the previous `stat.size > 0` assertion to fail. Change the test to only verify that `stat.size` is a numeric value, accommodating platform-specific behavior where directory sizes may be zero.