9 Feb
2012
9 Feb
'12
7:29 a.m.
Brian Candler wrote:
Attached is a small patch we use to rlm_sql_log to create (one level of) directories automatically.
There's already a rad_mkdir() function in src/main/util.c. It handles multiple directories, too.
Is this something which might be considered for a future version? Perhaps more generally, any module which writes files could have a flag which enables 'mkdir -p' type functionality?
It's probably better to have an API which says "open file for creation, including any mkdir" Until then, I'll commit a short patch to the v2.1.x branch. Alan DeKok.