contentLength method

int contentLength()

The size of the file in bytes, for a Content-Length header for example. Throws when the file does not exist.

Implementation

int contentLength() => FileAccess.length(path);