UIOP feature idea...
Pascal J. Bourguignon
pjb at informatimago.com
Tue Nov 24 04:02:23 UTC 2015
Faré <fahree at 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
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
More information about the asdf-devel
mailing list