Visit Mozilla.org

XPInstall API Reference:File Object:Methods:size

From MDC

Contents

[edit] size

Return the size of the given file in bytes.

[edit] Method of

File object

[edit] Syntax

int size (String NativeFolderPath);

[edit] Parameters

The size method has the following parameters:

NativeFolderPath
The full pathname to the file.

[edit] Returns

A number representing the size, in bytes, of the queried file.