Equivalent to "dirname"

Pior Bastida pior at pbastida.net
Mon Dec 14 23:09:14 MSK 2009


Hello,

I would like to check if the directory of a non existant file exist.

/mydir/poipoi/foobar    doesn't exist (easy to test)
/mydir/poipoi/        <-- I need to check that

Basically it would take a "dirname" function.

Can we do that with nginx ?
Maybe it's over the scope of a webserver...

Thanks !
-- 
Pior Bastida
pior at pbastida.net



More information about the nginx mailing list