Re: [Nautilus-list] file properties dialog



On Friday, March 29, 2002, at 03:10 PM, Alex Duggan wrote:

I'm am going to try and fix bug 62713, the bug where in the file
properties, it rounds the size of a file to the nearest kb, mb, etc.

Great!

I have 2 questions:

1.) What files is the code for the file properties

nautilus/src/file-manager/fm-properties-window.c

2.) What is the best way to get the exact size of a file in bytes?

Inside Nautilus, you'll be using the NautilusFile class to get information about a file. So you'll use the nautilus_file_get_size call, which returns a 64-bit number (could be other sizes on some platforms, but 64-bit on most) that's the exact size of the file in bytes.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]