Faré fahree@gmail.com writes:
What about making UIOP:FILE-LENGTH be generic and take either strings (filenames), pathnames, or streams as argument?
Such a function probably fits in the library, though a bit less so if it is *not* used by ASDF.
Please don't use a name that clashes with the CL package. The ASDF and UIOP tradition seems to suggest such a function should be named FILE-LENGTH*.
Or FILE-SIZE
If you want to determine a "size" of a file without opening it (and counting newlines), then you're not considering a length (of a sequence, stored in the stream), but a file system file size.
There's ql-util:file-size