Language

Package: sbcl-trivial-file-size @ 0.0.0-0.1c1d672

Synopsis

Size of a file in bytes in Common Lisp

Description

The canonical way to determine the size of a file in bytes, using Common Lisp, is to open the file with an element type of (unsigned-byte 8) and then calculate the length of the stream. This is less than ideal. In most cases it is better to get the size of the file from its metadata, using a system call.

This library exports a single function, file-size-in-octets. It returns the size of a file in bytes, using system calls when possible.

Home page
https://github.com/ruricolist/trivial-file-size
Location
gnu/packages/lisp-xyz.scm (line: 7514, column: 4)
License

Lint warnings

LinterMessageLocation
No lint warnings