[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file sizes shown incorrectly for large files under Windows
From: |
Chris Moore |
Subject: |
file sizes shown incorrectly for large files under Windows |
Date: |
11 Nov 2003 02:10:07 +0100 |
In a dired listing of a file I see:
-rw-rw-rw- 1 Chris root 386551808 08-22 06:38 Disk Image (C).DIM
but the file is much bigger than that.
Using an eshell buffer I see the same information:
h:/ $ ls -l *.dim
-rw-rw-rw- 1 Chris 5 386551808 Aug 22 06:38 Disk Image (C).DIM
The native Windows dir command shows me the correct size:
22/08/2003 06:38 26,156,355,584 Disk Image (C).DIM
It seems that both problems stem from the use of the file-attributes
function:
(nth 7 (file-attributes "Disk Image (C).DIM"))
=> 386551808.0
file-attributes uses a floating point value for the filesize because
it's too big to be stored in an integer, but it still gets it wrong.
Chris.
In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)
of 2003-11-06 on CHRISLAP
configured using `configure --with-gcc (3.2)'
- file sizes shown incorrectly for large files under Windows,
Chris Moore <=
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13