#720 File sizes are modulo 4G

v4.0
closed
Rick McGuire
5
2012-08-14
2009-06-08
DougL
No

If file "big_file" is 4 gigabytes, the following 3 say statements all report "0" as it's size (even with "numeric digits 20"):

    say stream(big_file, 'command', 'query size')

    say .Stream~new(big_file)~query('size')

    _ = sysfiletree(big_file, 'tt', 'f');
    say tt.1

If "big_file" is 4G+100 bytes for example, they report 100.

This is related to 1881980 "SysFileTree fails on files > 4Gb", which is open but closed for comments.

Discussion

  • Rick McGuire
    Rick McGuire
    2009-06-08

    Two questions.

    1) Are you actually reporting this against 3.2.0 rather than the 4.0 beta?
    2) What operating system are you using?

     
  • DougL
    DougL
    2009-06-08

    1) Yes, 3.2.0.
    2) Up-to-date Windows Vista.

     
  • Rick McGuire
    Rick McGuire
    2009-06-09

    This was one of the features of the 4.0 release (currently in beta). The stream file sizes are now 64-bit quantities so sizes larger than 4Gb can be handled. SysFileTree is a different situation, since there are parsing compatibility problems associated with expanding the size of that field.

     


Anonymous


Cancel   Add attachments