Get directory only if path is to a file.
Get directory only if path is to a file.

bmi-forum/bmi-babel,bmi-forum/babelizer,bmi-forum/babelizer,bmi-forum/bmi-babel,bmi-forum/babelizer,bmi-forum/babelizer,bmi-forum/bmi-babel,bmi-forum/bmi-babel